Consider the following program in C:

#include
int main()
{
static int var = 5;
if(var--)
{
main();
printf("%d",var);
}
}

Which of the following is the correct output sequence for the above program?

1
-1-1-1-1-1
2
5 4 3 2 1
3
4 3 2 1 0
4
0 0 0 0 0

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation