Computer Science, asked by saranyapk3218, 1 year ago

The variable declared above main( ) function are called ................. variables.Fill in blank

Answers

Answered by sachinarora2001
0
global variable.......
Answered by ArunSivaPrakash
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