Sollicitatievraag bij RTTS

(C/C++) What is the difference between a while loop and a do while loop?

Antwoord op sollicitatievraag

Anoniem

30 mrt 2010

A while loop runs only if the specified condition is true. A do while loop runs at least once irrespective of the truth of the specified condition.