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 is meant by initialization and how we initialize a variable?
Why c language?
How to declare pointer variables?
When should you not use a type cast?
Is c still used?
How can I use a preprocessorif expression to ?
which type of aspect you want from the student.
Explain the advantages and disadvantages of macros.
Describe the header file and its usage in c programming?
What are the two types of functions in c?
how logic is used
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
How do you construct an increment statement or decrement statement in C?
What is a const pointer in c?
Why header files are used?