Multiple choice

Which of the following rules is/are true for defining a variable in “C language”? (1) The variable name may be a combination of uppercase letters and a digit, but the digit must start with the variable name. (2) Variable can be a C keyword. (3) Spaces are not allowed in a variable defining process.

  1. Only (1)

  2. Only (2)

  3. Only (3)

  4. Both (1) & (3)

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Variable name cannot start with a digit. So, statement (1) is incorrect. Variable cannot be a C keyword. So, statement (2) is incorrect. Spaces cannot be there while declaring variable. So, statement (3) is correct.