If extern variable is initialized with the declaration then _______________________

Khánh Đoan

New member
If extern variable is initialized with the declaration then _______________________
A. Also the header file with definition is required
B. The header file with definition must be included
C. There is no need to include any other header file for definition
D. The extern variable produces compile time error
 
Answer: c
Explanation: When the value for the extern variable is defined with its declaration, then there is no need to include any file for the definition of the variable. The Initialization acts as a definition for the extern variable in the file itself.
 

Tìm kiếm

Back
Top