0
output quesion
char *s = "a string"; char *p = s; while(*p++); printf("%d", (int)(p-s)); how output is 9?
1 Antwort
+ 2
s points to starting of string ;
p points to end of string after while loop so s + 8 and post increment cause+1
(p-s) difference is 9