C Do While Loop
Last Updated Nov 20, 2015, 07:00:14 PM
Do while loop executes a block of code at least once. The result of boolean condition decides whether or not the exectution should repeat
- The do while loop in C programming, consists of a process symbol and a condition first
- Initially, the code we write within the blok is executed and then only the condition is evaluated.
- This repeats until the condition becomes FALSE.
Difference between While loop and Do while loop in C
do while loop executes the content of the loop once before checking the condition of the while.
while loop will check the condition first before executing the content.
Why use a “do while” loop? - StackOverFlow
Other Loop Topics you might want to learn
for loop in C
while loop in C
nested loops in C