Sail E0 Webinar
Question

Choose the correct option.
 extern int i;
 int i;


Options:
A .  both 1 and 2 declare i
B .  1 declares the variable i and 2 defines i
C .  1 declares and defines i, 2 declares i
D .  1 declares i,2 declares and defines i
Answer: Option D

The keyword extern is not a definition and is not allocated storage until it is initialized.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers