Question d’entretien chez RTTS

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

Réponse à la question d'entretien

Utilisateur anonyme

30 mars 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.