Sail E0 Webinar
Question
What will be the output of the following program?
#include\
int main(){ 
extern int i; 
i = 20; 
printf("%ld ", sizeof(i)); 
return 0;
}
Options:
A .  Depends on the Compiler
B .  2
C .  4
D .  Linker Error : Undefined symbol 'i'
Answer: Option D

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers