C | String | Question 5

Last Updated :
Discuss
Comments
What does the following fragment of C-program print? C
 char c[] = "GATE2011";   char *p =c;   printf("%s", p + p[3] - p[1]) ; 
GATE2011
E2011
2011
011
Tags:
Share your thoughts in the comments