Multiple choice

Which of the following variables is used in C++ for assigning alias name to a variable?

  1. Global variable

  2. Reference variable

  3. Local variable

  4. Static variable

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

Reference variable is used in C++ to assign alternate name or alias to existing variable.