+ 2
The output is 9 but why?
char *s = "a string"; char *p = s; while(*p++); printf("%d", (int)(p-s));
9 Respuestas
+ 2
Coder Kitten after while loop p value be "g", so answer should be g-a=5.
Am I right?
+ 1
Coder Kitten so, p points to \0 or NULL
+ 1
Answer is 9 right?