answersLogoWhite

0

"while" is an entry controlled loop statement i.e the condition is evaluated first and if it is true the body of the loop is evaluated.This process is repeated until the test condition is false;then the control is transfered out of the loop.

The general form of while is as following

syntax:

while (<condition>)

{

<statements>;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Which loop is also called an exit-condition loop in C programming?

The do while loop is also called an exit condition loop in c, c++, and java.


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.


What are the Rules associated with for loop in C programming?

There are no "Rules", you only have to remember the syntax:for (; ; ) it is the same thing as:;while () {;}


How infinite loop is created using while in C programming?

while (2*2==4) printf ("Still running\n");


How do you use loop in C programming?

#include&lt;stdio.h&gt;


How can you define null statement in loop in C programming?

If you are using for loop for(;;); or you can also define condition and iterations but the loop has to close there itself without any statement inside it. In the similar way you can define while and do while loop without any statement.


How many rows do the update queries fetch inside a while loop?

Is your question about C programming or Oracle Database. From the stand point of C programming your question does not make sense. Perhaps you need to rephrase the question.


What is difference between select Case statement and nested loop in c programming in UNIX?

UNIX has no bearing on the C language; it is cross-platform. There is no select/case in C, you probably meant switch/case. However, a switch/case is a conditional jump while a nested loop is a loop within a loop. Besides the C language they have nothing in common with each other.


How can I create a knot for loop in my programming code?

To create a knot for loop in programming code, you can use a loop structure that repeats a block of code a specific number of times or until a certain condition is met. This loop allows you to iterate through a sequence of instructions multiple times. You can use keywords like &quot;for&quot; or &quot;while&quot; in languages like Python, Java, or C to implement a knot for loop.


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.


What is a loop type?

A Loop is a programming language construct that instructs the processor to repeat a sequence of operations a number of times until a specific condition is reached. There are different types of loops. They are: * for loop * while loop * do while loop


What is the Difference between while and do while?

Both are programming commands. A do/while loop will execute at least once. A while loop may not execute at all.


Is do while loop in c is exit controoled loop?

yes


What are the differences between Do While and For loops in C?

In short, a for loop declares an variable and assigns it a value, has an argument, and has an update. A while loop only has an argument. More Detail... in C++, which is very close to C an example while loop is; while(i


How does a while loop work in programming languages?

A while loop in programming languages repeatedly executes a block of code as long as a specified condition is true. The loop continues to run until the condition becomes false, at which point the program moves on to the next line of code.


Do-while loop in c?

Available.


What is looping in programming languages?

In programming, a "loop" is a piece of code that is allowed to execute repeatedly until a condition is met. Under C, there are "for" and "while" loops. Other languages have "foreach" and "repeat..until" loops. A "for" loop optionally sets a variable at a certain value, and then executes a block of code while that (and perhaps other variables) meet(s) certain conditions. "While" loops are simpler types of loops since they only loop while a condition is met - variables are set before the "while" statement. See the related links below for more information on looping in C.


What is the difference between a do while loop and a for loop in c?

the counter variable cannot be initialized in while loop before entering into the block.


What is meant by for loop in C programming?

loops execute a set of insructions repeatedly for a certain numbers of times..


Where do you get loop the loop straws?

C, for loops, while loops, and do while loops are control structures forFor example, the following programs are functionally identical: While loop