Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
What is pointer arithmetic in c?
2 Answers
+ 3
char *p = "string";
*p is 's'
*(p + 1) is 't'
+ 1
Pointer arithmetic is nothing but the normal arithmetic of the pointer addresses.