answersLogoWhite

0

"do statement while (...);" is a loop which does at least one iteration even if the condition after while is false. When, for instance, "while(...) statement" does not iterate at all if the condition after while is false.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the difference between while dowhile?

While: If we can use while statement it will check the condition then proceed further loop statement.DoWhile: If we use dowhile, first execute loop statement then check the condition.


What programming languages use a C switch statement?

There are two programming languages which use a C switch statement. The two languages are C and C++, hence the name C switch statement. There may be more, but those are the most obvious ones


What is if-statement in c programming language?

One of the statements, obviously.


What is else if in C programming language?

Statements. Typical usage: if (<condition>) <statement>; else <statement>;


How does the compiler differentiate the statement and function in C programming?

statement should not return a value but function returns a value


Why you use semicolon to terminate the lines in C programming?

Because that is the defined statement terminator of the language.


Different unconditional statement in C programming language?

The C programming language is generally made up of common conditional statements. Occasionally, unconditional statements such as test that are based on imperative commands.


What is the definition of 'nested' in C programming?

In C a structure within a structure is called nested. For example, you can embed a while loop in another while loop or for loop in a for loop or an if statement in another if statement.


Why you use if and else statement in c language program?

There is no "elseif" statement in C. You can only use "else" and "if" separately. This is a good reason for switch/case/break.


List out the differences between while and dowhile statement?

The do ..while loop is executed at least once, whereas the while loop may not be executed even once.


What is the use of break in c programming?

The break statement is used to exit the nearest enclosing scope. Control passes to the first statement that comes after that enclosing scope.


What is difference between while and dowhile?

the test condition will be checked first after wards the body of the loop will be excuted in while statement and the the do while statement represented the body of the loop will be executed first and then the test condition will checked next