void main()
{
static int i = 5;
if(--i)
{
main();
printf("%d
",i);
}
}
what would be output of the above program and justify your
answer?
}
Answer Posted / srsabariselvan
0
0
0
0
static variable's value is stored in memory statically upto
end of the program. so if the variable comes out of the
function it retains its value
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
What are the parts of c program?
How does placing some code lines between the comment symbol help in debugging the code?
What does node * mean?
Explain what is the difference between functions abs() and fabs()?
What is the size of array float a(10)?
How can this be legal c?
what are the different storage classes in c?
Write a program to reverse a given number in c?
What is the use of ?
What is the difference between break and continue?
write a program to find out prime number using sieve case?
Is it possible to execute code even after the program exits the main() function?
How many loops are there in c?
How do you determine whether to use a stream function or a low-level function?