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
Explain what is operator promotion?
Is c easy to learn?
What is class and object in c?
What is a program flowchart and explain how does it help in writing a program?
What is c variable?
What is s in c?
Explain what are reserved words?
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
What does the c preprocessor do?
How can I use a preprocessorif expression to ?
Explain low-order bytes.
What is the explanation for the dangling pointer in c?
How are strings stored in c?
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
What is far pointer in c?