New course! Every coder should learn Generative AI!
Try a free lesson+ 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.