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 will the preprocessor do for a program?

588


What is .obj file in c?

648


What does char * * argv mean in c?

623


What is the difference between single charater constant and string constant?

620


Differentiate between a for loop and a while loop? What are it uses?

669






Write a code to determine the total number of stops an elevator would take to serve N number of people.

727


Which function in C can be used to append a string to another string?

641


What is the sizeof () operator?

623


How can you draw circles in C?

623


What are the header files used in c language?

586


c program to compute AREA under integral

1808


How to delete a node from linked list w/o using collectons?

2087


Explain heap and queue.

581


What is this pointer in c plus plus?

593


Tell me the use of bit field in c language?

627