Question 128

What is the output? printf("%d", 'A' + 2);

What is the output? printf("%d", 'A' + 2);
  1. AC
  2. B67
  3. C65
  4. DError
Show answerHide answer

Correct answer: (B) 67

Explanation

'A' = 65; 65 + 2 = 67 printed with %d.

From DSSSB TGT Computer Science Full Mock Test 5

This is question 128 of DSSSB TGT Computer Science Full Mock Test 5. 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.