Vidyalelo
C Programming · Q190

Function

Programming · C Programming · question 190

Q190

What will be the output of the following C code? #include int main() foo(); foo(); void foo() int i = 11; printf("%d ", i); static int j = 12; j = j + 1; printf("%d ", j);

A.
11 12 11 12
B.
11 13 11 14
Answer
C.
11 12 11 13
D.
Compile time error

Answer: Option B

Solution

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