A while statement is one type of looping statement.
by which we can start a loop in our programs.
while loop is precondition checking statement,
because it first check its condition then loop will go to its body part.
EX.
while(i>0)
{
//body part
}
here when i will >0 then it will check it body part and execute it and display
result.
Chat with our AI personalities
Statements that check an expression then may or may not execute a statement or group of statements depending on the result of the condition.
No, why did you think so?
turbo c
A do-while statement is a type of loop that iterates while a condition remains true. The condition is evaluated at the end of each iteration, thus the statement always executes at least once. do { statement; } while (expression);
TLINK is the Turbo C++ linker utility. You use it to link the object files created by the Turbo C++ compiler.