Multiple choice

Which of the following variables name is NOT valid?

  1. go_cart

  2. go4it

  3. 4season

  4. run4

  5. what

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

In C, variable names must start with a letter or underscore, not a digit. '4season' begins with 4, making it invalid. 'go_cart', 'go4it', 'run4', and 'what' are all valid as they start with letters and contain only alphanumeric characters/underscores.