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.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
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.
need an explanation for this answer? contact us directly to get an explanation for this answer