Multiple choice technology programming languages

The other name for external variables in C++ is

  1. static variables

  2. register variables

  3. global variables

  4. None of the Above

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

In C++, external variables (declared with extern keyword) are also called global variables because they have global scope and can be accessed across multiple source files. Static variables have file scope only, register variables are storage class specifiers for CPU register allocation, so they are different concepts from external variables.