What is the difference between while and do-while loops in C?
Short Answer
Views 1320
Answer:
- While loop is executed only when given condition is true.
- Whereas, do-while loop is executed for first time irrespective of the condition. After executing while loop for first time, then condition is checked.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of C Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.