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
Are negative numbers true in c?
Is c a great language, or what?
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
What is methods in c?
What is register variable in c language?
Can i use “int” data type to store the value 32768? Why?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Difference between exit() and _exit() function?
Write a program to show the change in position of a cursor using c
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is the difference between int main and void main in c?
What are the __date__ and __time__ preprocessor commands?
what value is returned to operating system after program execution?
Explain what is page thrashing?
How are variables declared in c?