Which is the correct syntax for extern variable declaration?

Huyền Thu

New member
Which is the correct syntax for extern variable declaration?
A. extern data_type variable_name;
B. extern variable_name;
C. data_type variable_name extern;
D. extern (data_type)variable_name;
 
Answer: a
Explanation: The syntax firstly contains the keyword extern. Then the data type of the variable is given. Then the variabel name is mentioned by which it will be used in the program.
 

Tìm kiếm

Back
Top