Question 45Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)

Which of the following statements is INCORRECT about the storage classes in C?

  1. AThe scope of variable in automatic storage class is local to the block in which the variable is defined.
  2. BIn Register storage class, the default initial value of the variable is zero.
  3. CIn static storage class, the default initial value of the variable is zero.
  4. DIn Register storage class, the storage of a variable is CPU register.
Show answerHide answer

Correct answer: (B) In Register storage class, the default initial value of the variable is zero.

Explanation

Register variables, like automatic ones, have a garbage (undefined) initial value if not initialised; only static and global variables default to zero. So statement B is incorrect.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 1 (9:00 AM)

This is question 45 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 1 (9:00 AM). 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.