What is the output? enum {A, B = 5, C};
What is the output?
enum {A, B = 5, C};
printf("%d", C);
Show answerHide answer
Correct answer: (D) 6
Explanation
After B = 5, C gets the next value, 6.
Correct answer: (D) 6
Explanation
After B = 5, C gets the next value, 6.
This is question 133 of DSSSB TGT Computer Science Full Mock Test 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.