Multiple choice general knowledge science & technology

External variables in C++ can also be called as

  1. static variables

  2. register variables

  3. global variables

  4. auto variables

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

External variables are defined outside all functions and have global scope, making them accessible throughout the program. They are commonly called global variables because any function can access them. Static variables have internal linkage, register variables suggest CPU register storage, and auto variables are local function variables - none of these describe external variables.