Do while & for loops have to be executed at least once?

I have a question:

Will the statement block of a while loop be executed at least once?
Also, same question for a for loop.

I think the answer is no for both; if the condition statement is false the very first time it checks, then nothing will be executed.

I'm just looking for some sort of confirmation of if I'm right or not.
No for both.
I hope your double post was accidental. Forum lag?
Thanks

The double was an accident; just deleted the other. There is an awful lot of forum lag; always seems to be the case when I check it out
you just pointed the difference between a do-while and a while loop.
1
2
3
    do {
        cout << "try me out!" << endl;
    } while (false);
Topic archived. No new replies allowed.