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
What do you mean by dynamic memory allocation in c? What functions are used?
the question is that what you have been doing all these periods (one year gap)
Why do we use pointer to pointer in c?
Where static variables are stored in c?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Why we use stdio h in c?
How can I insert or delete a line (or record) in the middle of a file?
Why isn't it being handled properly?
What is the significance of c program algorithms?
Explain what standard functions are available to manipulate strings?
What is a header file?
What is function prototype in c language?
Write a code on reverse string and its complexity.
number of times a digit is present in a number
What is the difference between struct and union in C?