1.

Consider the following code: int f(int k) { static int i = 100; int l; if (i == k) { printf("something"); l= f(i); return 0; } else return 0; } Which one of the following is TRUE?

A. the function returns 0 when j = 1000.
B. the function prints the string something for all values of j.
C. the function returns 0 for all values of j.
D. the function will exhaust the runtime stack or run into an infinite loop when j = 100
Answer» E.


Discussion

No Comment Found