#include <stdio.h> void fun() { int p; static int x=1; p = ++x; printf("%d %d", p, x); if(p <= 2) fun(); printf(“%d %d”, p, x); } int main() { fun(); fun(); }
In the above code fragment, the total number of times printf statement will be executed is _________.
The question in the test is wrong. It doesn't have #include <stdio.h> but simply #include void fun...
This will result in the compile error.
@ Vasu Srivastava
I corrected this kind of issue, can you plz tell me in exam interface how it looks like now ?
64.3k questions
77.9k answers
244k comments
80.0k users