what is the difference between do and while?
What is the difference between while and do-while loops in C? 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.