Question 128

What is the output (assume int is 4 bytes)? printf("%d", (int)(sizeof(int) * 2));

What is the output (assume int is 4 bytes)? printf("%d", (int)(sizeof(int) * 2));
  1. A2
  2. B4
  3. C8
  4. D16
Show answerHide answer

Correct answer: (C) 8

Explanation

4 × 2 = 8.

From DSSSB TGT Computer Science Full Mock Test 4

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