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

Can you return null in c?

872


Write a code to remove duplicates in a string.

832


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2532


Why should I use standard library functions instead of writing my own?

966


What is difference between array and structure in c?

798


What type is sizeof?

804


What is an lvalue?

848


What are shell structures used for?

801


Does free set pointer to null?

760


How do you determine whether to use a stream function or a low-level function?

918


Can static variables be declared in a header file?

829


Difference between macros and inline functions? Can a function be forced as inline?

956


Explain the difference between call by value and call by reference in c language?

875


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

937


Explain what is wrong with this program statement?

865