Answer to Question #292517 in C for Muskan

Question #292517

What happens if the condition in a while loop is initially false? Explain and differentiate


between while and do while statement in ‘C’ language.

1
Expert's answer
2022-02-03T11:36:00-0500

The execution flow won't go through while loop body, i.e. everything inside the curly brackets { ... } won't be executed. As for do { ... } while(false), the content in curly bracket wil be executed once before reading condition while (...). After that the loop content won't be executed anymore.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS