Question 133

What is the output? enum {A, B = 5, C};

What is the output? enum {A, B = 5, C}; printf("%d", C);
  1. A5
  2. B3
  3. C2
  4. D6
Show answerHide answer

Correct answer: (D) 6

Explanation

After B = 5, C gets the next value, 6.

From DSSSB TGT Computer Science Full Mock Test 3

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.