answersLogoWhite

0

1.In computer programming, a global variable is a variable that is accessible

in every scope.

2.There are some variables that are used in more than one function.such

variables are called global variables.

3.Usually,they are declared in global declaration section that is outside

of all functions.

4.In this section,we can also declare all user-defined functions.

DECLARATION:

int global =5;

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

A variable that is used in all program modules is?

global


If the variable flag can only be declared once in the program it was declared as what type of variable?

It's a global variable.


What is the use for a global variable in a program?

See related link.


Which variable is initialized once when program is compiled?

global and static


What are global variable?

Variables that are declared globally outside every program are called global variables.


When auto variable create?

Program enter function.


What is a global declaration?

A global declaration of a function or variable is a declaration that is at the global scope of the program, not inside another function. This means that the name will be visible within all functions in the program.


What is the implications of misidentifying a local and global variable?

Your program won't work correctly.


How are global variable different from local variable in Visual BASIC?

A global variable is available for use throughout the program. It is normally declared outside any procedure. A local variable is only available for use in the procedure it was declared in. Most variables are local, but there will be occasions when you want different procedures to be able to use the same variable. This is when you use a global variable.


what type of variable is visible to every module and the entire program?

If you are talking about a class in Java, a variable encapsulated by a class is called an instance variable b/c everytime you create an object with that class, each object has its own set of the variables declared.


Scope of static variables?

Scope of static variable is with in the file if it is static global. Scope of static variable is with in the function if variable is declared local to a function. But the life time is throughout the program


Is a global variable a non-local variable?

True, a variable cannot be both global and local. But if a global and a local variable share the same name, the local one will hide the global.