First page Back Continue Last page Overview Image
do-while loop in C
- The “do-while” loop continues until a given condition satisfies. It is also called post-tested loop. It is used when it is necessary to execute the loop at least once (mostly menu driven programs).
- The syntax of The syntax of do-while loop in c language loop in c language is given below: is given below:
int index = 0;
do
{
block;
} while (condition);