What is extern variable?

What is extern variable?
A. Variables to be used that are declared in another object file
B. Variables to be used that are declared in another source file
C. Variables to be used that are declared in another executable file
D. Variables to be used that are declared in another program
 
Answer: b
Explanation: The variables that are declared in another source file can be accessed in other files using extern variables. The extern variables must be mentioned explicitly. The source file is included to use its variables.
 

Tìm kiếm

Back
Top