Difference between while and do-while loop?

: 658
Paper : C Programming FAQ (Frequently Asked Questions and answers) for freshers | Platform : Procedural Programming Languages | Category : Programming FAQs

In the case of a while statement, the condition is checked before the execution of inner statements. The execution stops if conditions turn out to be false. In the case of the do-while loop, once the set of the statement will execute then the condition in check.

Suggested Papers: