What is a variable defined outside a function referred to as?

Đạt Michio

New member
What is a variable defined outside a function referred to as?
A. A static variable
B. A global variable
C. A local variable
D. An automatic variable
 
Answer: b
Explanation: The value of a variable defined outside all function definitions is referred to as a global variable and can be used by multiple functions of the program.
 

Tìm kiếm

Back
Top