GATE | GATE CS 2011 | Question 22
What does the following fragment of C-program print?
char c[] = "GATE2011"; char *p =c; printf("%s", p + p[3] - p[1]) ; |
chevron_right
filter_none
(A) GATE2011
(B) E2011
(C) 2011
(D) 011
Answer: (C)
Explanation: See https://www.geeksforgeeks.org/c-language-set-8/
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 2011 | Question 65
- GATE | GATE CS 2011 | Question 6
- GATE | GATE CS 2011 | Question 32
- GATE | GATE CS 2011 | Question 21
- GATE | GATE CS 2011 | Question 23
- GATE | GATE CS 2011 | Question 24
- GATE | GATE CS 2011 | Question 25
- GATE | GATE CS 2011 | Question 65
- GATE | GATE CS 2011 | Question 27
- GATE | GATE CS 2011 | Question 28
- GATE | GATE CS 2011 | Question 65
- GATE | GATE CS 2011 | Question 64
- GATE | GATE CS 2011 | Question 63
- GATE | GATE CS 2011 | Question 65
- GATE | GATE CS 2011 | Question 16



