Question 35Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

Which of the following is a correct way to declare a char type variable x in C?

  1. Achar x;
  2. Bchar = 'x';
  3. Cch x;
  4. Dcharacter x;
Show answerHide answer

Correct answer: (A) char x;

Explanation

A C variable is declared as type followed by name, so char x; declares a char variable x. "ch" and "character" are not C types.

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

This is question 35 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5: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.