answersLogoWhite

0

A do-while statement in a c programing can be create as per the following syntax-

do

{

.................................;

.................................; SETS OF THE EXECUTABLE STATEMENTS

..................................;

} while(condition);

as per the above mentioned syntax it will work.it means that 1st the set of executable statements will execute atleast once before checking for the condition and then it will go to check for the condition mentioned within the while.it means suppose if the condition given inside the while is incorrect then also the executable part will execute atleast once and after executing that it will go to while and will check for the conditon.If the condition will be true then it will execute till the condition exists otherwise will come out of the loop only.

HERE CARE SHOULD BE TAKEN THAT AFTER THE WHILE WE SHOULD PUT SEMICOLON.BUT IN ONLY WHILE LOOP WE DONT USE THAT.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is a dowhile statement in C programming?

"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.


Create a spiral in C programming?

create spiral in c programming?


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>;


Who create C programming?

Many people. They are known as C-programmers.


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

statement should not return a value but function returns a value


What does the hashtag mean in programming?

In programming, specifically in C and C++, the hashtag (#) is used to include files into the main program and to create macros.


How Create mouse in C programming source code?

Here is the article for Mouse programming in C. In this link full details are given nicely.http://electrofriends.com/articles/computer-science/c-tutorials/mouse-programming-in-cc/


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

Because that is the defined statement terminator of the language.


Why you use while function in c?

It is a statement; you can create a loop with it: while (<condition>) <statement>


In computer programming C stand for?

C and it's variants (C++, C#, etc...) are all programming languages. C is simply a method of using words and alphanumeric characters to create a set of instructions that form a program.