- Home /
Difference between while loop and dowhileloop?
What exactly is the difference between a while loop and a DoWhile loop? When should I use what loop? Thanks!
Answer by perchik · Feb 21, 2014 at 06:56 PM
A while loop might never execute a statement if the expression is false but a do while will always execute the statement at least once.
http://cplus.about.com/od/learningc/ss/clessonfive_4.htm
http://stackoverflow.com/questions/3347001/do-while-vs-while
http://stackoverflow.com/questions/224059/test-loops-at-the-top-or-bottom-while-vs-do-while
Google is your friend.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
connecting my audio volume to a slider 1 Answer
How to learn c sharp fast? 0 Answers
Coroutine For Loop Will Not End 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers