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

Explain what is operator promotion?

813


Is c easy to learn?

720


What is class and object in c?

786


What is a program flowchart and explain how does it help in writing a program?

939


What is c variable?

765






What is s in c?

814


Explain what are reserved words?

824


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3511


What does the c preprocessor do?

827


How can I use a preprocessorif expression to ?

759


Explain low-order bytes.

799


What is the explanation for the dangling pointer in c?

870


How are strings stored in c?

768


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

982


What is far pointer in c?

988