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 #pragma statements?
Which are low level languages?
What is the purpose of void in c?
Explain a file operation in C with an example.
What does void main () mean?
Write a program to reverse a given number in c language?
Can we change the value of constant variable in c?
What is meant by type casting?
i got 75% in all semester am i eligible for your company
What is a ternary operator in c?
Why do we use header files in c?
How can this be legal c?
When should volatile modifier be used?
Why c language is called c?
What is operator promotion?