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 the difference between malloc() and calloc()?
Explain the properties of union. What is the size of a union variable
What are pointers? What are different types of pointers?
What are the different file extensions involved when programming in C?
Explain what is the concatenation operator?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What’s a signal? Explain what do I use signals for?
What is an auto variable in c?
What are loops c?
Explain how do you list a file’s date and time?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
Write a progarm to find the length of string using switch case?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Explain argument and its types.
What is main return c?