Multiple choice

Which one of the following can't be used as variable name?

  1. virtual

  2. assignment

  3. pointer

  4. object

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

In C++, 'virtual' is a reserved keyword used for polymorphism. Reserved keywords cannot be used as variable names, while 'assignment', 'pointer', and 'object' are valid identifiers.