Question 130

What is the output? char c = 'a';

What is the output? char c = 'a'; c = c - 32; printf("%c", c);
  1. AA
  2. BB
  3. Ca
  4. DGarbage
Show answerHide answer

Correct answer: (A) A

Explanation

'a' (97) − 32 = 65 = 'A'.

From DSSSB TGT Computer Science Full Mock Test 5

This is question 130 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.