What type of variable is one that is declared outside any function and is available throughout the program?

  • Constant variable
  • Global variable
  • Local variable
  • Static variable
A global variable is declared outside any function and is accessible throughout the program, making it available for all functions to use.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *