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 / sri ram

This prog'll not produce any output since the value of i
reduces when it reaches zero if block will not be executed
and the program is terminated....

Is This Answer Correct ?    7 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why C language is a procedural language?

608


Explain heap and queue.

574


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1587


What is the c value paradox and how is it explained?

565


Difference between pass by reference and pass by value?

647






Explain what are multibyte characters?

613


Can you write a programmer for FACTORIAL using recursion?

604


Explain what is the advantage of a random access file?

650


Why array is used in c?

545


Why is it important to memset a variable, immediately after allocating memory to it ?

1544


Explain what happens if you free a pointer twice?

602


Why do we use int main instead of void main in c?

604


Write program to remove duplicate in an array?

589


pierrot's divisor program using c or c++ code

1719


Where define directive used?

596