What are differences between while statement and Do- while statement in C? Explain with example?
Example: while loop vs do while
Main difference while loop executes while
condition is true. But do while executes
at least one time regardless.
Main difference while loop executes while
condition is true. But do while executes
at least one time regardless.