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


Please Help Members By Posting Answers For Below Questions

What is the difference between malloc() and calloc()?

592


Explain the properties of union. What is the size of a union variable

695


What are pointers? What are different types of pointers?

595


What are the different file extensions involved when programming in C?

725


Explain what is the concatenation operator?

601






a value that does not change during program execution a) variabe b) argument c) parameter d) none

668


What’s a signal? Explain what do I use signals for?

582


What is an auto variable in c?

727


What are loops c?

590


Explain how do you list a file’s date and time?

596


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

608


Write a progarm to find the length of string using switch case?

1579


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 ?

780


Explain argument and its types.

570


What is main return c?

489