Skip to content
Related Articles

Related Articles

Improve Article

GATE | GATE CS 2011 | Question 22

  • Last Updated : 28 Jun, 2021

What does the following fragment of C-program print?

Attention reader! Don’t stop learning now.  Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

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

(A) GATE2011
(B) E2011
(C) 2011
(D) 011

Answer: (C)

Explanation: SeeĀ

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :