What is the output of the following loop?for(I=0, j=I++; j>I; j++, I++){printf("%d%d", I, j);}A. 0,1B. 0,0C. Infinite loopD. No output

Showing Answers 1 - 7 of 7 Answers

ganeshbhat

  • Feb 18th, 2010
 

j=I++ is a postfix operation on I. hence j is initialized to I and the condition j>I is not satisfied.

Hence there will be no output

  Was this answer useful?  Yes

Brijesh

  • Jul 21st, 2013
 

C.Infinite Loop

  Was this answer useful?  Yes

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