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



what is the output of the below code? main( ) { printf ( "\nOnly stupids use C?" ) ..

Answer / vijay gupta

it well goes in indefinite loop

Is This Answer Correct ?    25 Yes 2 No

what is the output of the below code? main( ) { printf ( "\nOnly stupids use C?" ) ..

Answer / shrikantauti

such loops are known as infinite loop or odd loop.

Is This Answer Correct ?    6 Yes 2 No

what is the output of the below code? main( ) { printf ( "\nOnly stupids use C?" ) ..

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

Post New Answer

More C Interview Questions

Is there a way to compare two structure variables?

0 Answers  


Write a program to print “hello world” without using semicolon?

0 Answers  


Explain what is the difference between functions abs() and fabs()?

0 Answers  


What's the best way of making my program efficient?

0 Answers   Celstream,


what are the advantages & disadvantages of unions?

2 Answers  






what is the use of pointers

6 Answers   Adobe, GrapeCity,


Explain how are portions of a program disabled in demo versions?

0 Answers  


Which of these functions is safer to use : fgets(), gets()? Why?

0 Answers  


What is the full form of getch?

0 Answers  


What is chain pointer in c?

0 Answers  


can we have joblib in a proc ?

0 Answers  


whenever a question is posted in a particular category in allinterview.com, Is there any facility to receive an indication mail. For eg: I need to receive an indication email, whenever a question is posted under the category “C Langauage”.

1 Answers  


Categories