Hi everyone yesterday, I gave my GATE exam, and the question arose on this exam:
What does the following C program fragment output?
char c [] = "GATE2011"; char *p =c; printf ( "%s", p+p [3] โ p [1]) ;
options:
(A) GATE2011 (B) E2011 (C) 2011 (D) 011
Answer: C '. when I tried the code on my computer But how ??
Thank you in advance
source share