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.
Loading...
Related Quiz
- In C, the ________ function is used to write a string to a file.
- Which standard library function in C is used to concatenate two strings?
- What is the significance of using a pointer to a structure?
- When working with binary files in C, what is the significance of the 'b' character in the mode string?
- You are tasked with optimizing memory usage in a real-time application that processes complex data structures. How can pointers assist in achieving this goal?