GATE | GATE CS 2012 | Question 49
Consider the above question. What output will be generated by the given code d\segment if:
Line 1 is replaced by “auto int a = 1;”
Line 2 is replaced by “register int a = 2;”
(A)
3 1 4 1 4 2
(B)
4 2 6 1 6 1
(C)
4 2 6 2 2 0
(D)
4 2 4 2 2 0
Answer: (D)
Explanation: See Question 3 of https://www.geeksforgeeks.org/c-language-set-9/
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 2012 | Question 41
- GATE | GATE CS 2012 | Question 8
- GATE | GATE CS 2012 | Question 59
- GATE | GATE CS 2012 | Question 28
- GATE | GATE CS 2012 | Question 65
- GATE | GATE CS 2012 | Question 27
- GATE | GATE CS 2012 | Question 26
- GATE | GATE CS 2012 | Question 1
- GATE | GATE CS 2012 | Question 65
- GATE | GATE CS 2012 | Question 30
- GATE | GATE CS 2012 | Question 31
- GATE | GATE CS 2012 | Question 40
- GATE | GATE CS 2012 | Question 39
- GATE | GATE CS 2012 | Question 38
- GATE | GATE CS 2012 | Question 37



