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 will the preprocessor do for a program?
What is .obj file in c?
What does char * * argv mean in c?
What is the difference between single charater constant and string constant?
Differentiate between a for loop and a while loop? What are it uses?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Which function in C can be used to append a string to another string?
What is the sizeof () operator?
How can you draw circles in C?
What are the header files used in c language?
c program to compute AREA under integral
How to delete a node from linked list w/o using collectons?
Explain heap and queue.
What is this pointer in c plus plus?
Tell me the use of bit field in c language?