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

External variables in C++ are variables declared outside any function, making them accessible across multiple source files. These are commonly called global variables. Static variables have internal linkage (visible only within the file), and register variables are a hint to store variables in CPU registers (mostly obsolete in modern compilers).