Multiple choice

Which of the following variables in C++ must be initialised at the time of declaration?

  1. Static variable

  2. Reference variable

  3. Automatic variable

  4. Global variable

  5. Pointer variable

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

This type of variable in C++ must be initialised at the time of declaration.