Main(){ int x=5; clrscr(); for(;x

A) 5, 3, 1, -1, 3
B) 5, 2, 1
C) 5, 3, 1
D) None of the above
Explanation: prints nothing, as condition in loop is false.

Showing Answers 1 - 2 of 2 Answers

supriya.ahire

  • Mar 21st, 2006
 

hi,

  o/p is (D).It prints nothing.

     Though we r  initializing x to 5  but in for loop it does not satisfies the condoition (x< 0),it fails.without entering in the for loop it exit from th emain program.

-supriya Ahire.

   

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions