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 ?    27 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

Develop a program that computes the new price of an item. The program should receive a character variable colour and a double precision floating-point variable price from the user. Discount rate is determined based on the colour of the discount sticker, as shown in the following table. An error message should be printed if an invalid colour has been entered

1 Answers  


If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.

1 Answers   TCS,


What are qualifiers and modifiers c?

0 Answers  


How are pointers declared in c?

0 Answers  


What is d'n in c?

0 Answers  






program to find the ASCII value of a number

8 Answers  


a=5 a=a++/++a

14 Answers   Bhel,


What is a file descriptor in c?

0 Answers  


What does it mean when the linker says that _end is undefined?

0 Answers  


Write a program to find the smallest and largest element in a given array in c language

11 Answers   Microsoft, Vembu,


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; }

1 Answers   Google,


how could explain about job profile

0 Answers  


Categories