Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2011
Questions

Q22

MCQ1 mark, −0.33ProgrammingMedium

What does the following fragment of C program print?

char c[] = "GATE2011";
char *p = c;
printf("%s", p + p[3] - p[1]);
Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.