Do While Loop - Equivalent Constructs

Equivalent Constructs

do { do_work; } while (condition);

is equivalent to

do_work; while (condition) { do_work; }

that (as long as the continue statement is not used) is technically equivalent to the following (though these examples are not typical or modern style):

while (true) { do_work; if (!condition) break; }

or

LOOPSTART: do_work; if (condition) goto LOOPSTART;

Read more about this topic:  Do While Loop

Famous quotes containing the words equivalent and/or constructs:

    When the apple is ripe it will fall.
    —Irish proverb.

    An English equivalent to this might be, “To everything there is a season.”

    Psychology has nothing to say about what women are really like, what they need and what they want, essentially because psychology does not know.... this failure is not limited to women; rather, the kind of psychology that has addressed itself to how people act and who they are has failed to understand in the first place why people act the way they do, and certainly failed to understand what might make them act differently.
    Naomi Weisstein, U.S. psychologist, feminist, and author. Psychology Constructs the Female (1969)