Top

Discussion

What does the following fragment of C-program print?

char c[] = "GATE2011";  
char *p =c;  
printf("%s", p + p[3] - p[1]) ; 

 

  • A.GATE2011
  • B.E2011
  • C.2011
  • D.011

Answer: C

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment