114k views
5 votes
One that declared outside a function and is available to all.

Select one:

a. Scalar Datatypes

b. Global Variable

c. Compound Datatypes

d. Local Variable

User Valanto
by
5.6k points

1 Answer

0 votes

Answer:

Global variable

Step-by-step explanation:

The one that declared outside a function and is available to all is called a Global variable. A global variable is usually declared at the top of all function and is kept to minimum, all function can manipulate them during programs run time. The global variables are accessible through out the program, in any function for any number of times.

User Jared Oberhaus
by
5.6k points