Multiple choice

Which of the following is/are valid character constant(s)?

  1. “gn”

  2. “g1”

  3. “23”

  4. All of the above

  5. None of these

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

Character constants are declared within single quotation marks. It may contain letters and digits. So, all the given options are correct.