Question 30Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

Which of the following is an invalid variable name in C?

  1. AfirstName
  2. Bvoid
  3. Ctotal_sum
  4. Dnum123
Show answerHide answer

Correct answer: (B) void

Explanation

void is a reserved keyword in C and cannot be used as an identifier. The other names use only letters, digits and underscores and start with a letter.

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

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