Should the code below keep grabbing more resources as a variable is declared inside a while loop?while(1){int i = 10;while(--i);}How does a while loop exactly work? can any explain me the same?

Questions by chandan1008

Showing Answers 1 - 3 of 3 Answers

fcawad_03

  • Feb 16th, 2007
 

General Formate of While Loop::While(Condition){ Statement; Statement;}while Loop take a terminating condition....if the conditon satisfy..then it allow to execute statement otherwise terminate the 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