Question 12Asked in DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1

Which statement(s) is/are true about formation of identifier in C?

Which statement(s) is/are true about formation of identifier in C? I. It consist of alphabets, digits and underscore. II. An identifier can start with an underscore.
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (C) Both I and II

Explanation

A C identifier may contain letters, digits and underscores, and may begin with a letter or an underscore (but not a digit). Both statements are true.

From DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 1

This is question 12 of DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 1. 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.