what is the output of the below code?
main( )
{
printf ( "\nOnly stupids use C?" ) ;
display( ) ;
}
display( )
{
printf ( "\nFools too use C!" ) ;
main( ) ;
}
Answers were Sorted based on User's Feedback
Answer / shrikantauti
such loops are known as infinite loop or odd loop.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / sindhu
it execute infinite loop as
only stupids use c
fools too use c
these two statements infinite times on output screen
| Is This Answer Correct ? | 2 Yes | 0 No |
what is difference between overriding and overloading?
what is the purpose of the following code, and is there any problem with the code? void fn(long* p1, long* p2) { register int x = *p1; register int y = *p2; x ^= y; y ^= x; x ^= y; *p1 = x; *p2 = y; }
What does the function toupper() do?
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?
write a program to find the frequency of a number
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What is the code in while loop that returns the output of given code?
Why c++ is called c++ and not c+?
How do I read the arrow keys? What about function keys?
Toggle nth bit in a given integer - num
Can a file other than a .h file be included with #include?
Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001