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
What is meant by operator precedence?
What is the purpose of 'register' keyword in c language?
How can a program be made to print the line number where an error occurs?
What is a const pointer in c?
How can I implement a delay, or time a users response, with sub-second resolution?
What is the difference between printf and scanf )?
What are the header files used in c language?
Explain how can you tell whether a program was compiled using c versus c++?
Suggesting that there can be 62 seconds in a minute?
What does printf does?
Can math operations be performed on a void pointer?
What is auto keyword in c?
Why do we use pointer to pointer in c?
What are the advantages of using linked list for tree construction?
How do we make a global variable accessible across files? Explain the extern keyword?