Vidyalelo
C Programming · Q89

Function

Programming · C Programming · question 89

Q89

What will be the output of the following C code? #include int i; int main() extern int i; if (i == 0) printf("scope rules ");

A.
scope rules
Answer
B.
Compile time error due to multiple declaration
C.
Compile time error due to not defining type in statement extern i
D.
Nothing will be printed as value of i is not zero because i is an automatic variable

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board