P
Q. Determine Output:
void main() { static int var = 5; printf("%d ", var--); if(var) main(); }
When static storage class is given, it is initialized once. The change in the value of a static variable is retained even between the function calls. Main is also treated like any other ordinary function, which can be called recursively.
You must be Logged in to update hint/solution
Q. Choose a correct C Statement about Strings.
Q. What will be output for the following code?
Q. Number of Keywords present in C Language are?
Q. An entire array is always passed by ___ to a called function.
Q. All keywords in C are in ____________
Q. Which escape character can be used to begin a new line in C?
Q. What will be the output of the following C code?
Discusssion
Login to discuss.