The variable declared above main( ) function are called ................. variables.Fill in blank
Answers
Answered by
0
global variable.......
Answered by
0
The correct answer is global variable.
- The variable declared above main( ) function are called global variables.
- Global variables are variables that can be accessed globally or from any part of a C++ program.
- They are declared at the top of a program, usually before the main (or main) function.
- The variable declared in a main() function is called a local variable.
- The local variables are declared within a function using curly brackets.
- They cannot be accessed from any part of a programme like a global variable.
- Local and global variables are the most commonly used variables in the C++ computer programming language.
- The local variables are subject to debugging easily when compared to the global variables, which are difficult to debug.
#SPJ2
Similar questions
Sociology,
7 months ago
Science,
7 months ago
Social Sciences,
1 year ago
Computer Science,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago