What is the difference between while and do-while loops in C?

C Programming Language >   Loop control in C Language >   do while Loop In C  

Short Question

1388


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.


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.