answersLogoWhite

0

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

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

C program to print numbers 1 to n?

how do we use loops in c plus plus programing and what are basic differences between do,for and while loop


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


How does C plus plus endeavor to represent the loop paradigm?

Iterative loops in C/C++ are represented by for(), while() and do...while() code blocks. Recursive loops are represented by functions calling themselves.


What loops does not need a counter?

Random example: while ((c= getchar()) != EOF) putchar (c);


What is the difference between do and while loops in c?

the main difference b/w do and while loops is that do loop will run atleast once even if condition is not satisfied but while loop will not execute even once if condition is not satisfied . this is bcoz in do loop condition is checked after one execution but in while condition is prechecked.


C programs using loops?

Loops are very important part of a C-language. If we have to run our programe multiple time then we use Loops of C.


Three kinds of iteration structures in c?

Iteration structures are also called as loops. The following are the loops available in c. 1. for (initialization; condition; increase/decrese) statement 2. while (expression) statement 3. do statement while (condition)


What are the structural differences between the n and c terminus of a protein?

The N-terminus of a protein is where the amino acid chain starts, while the C-terminus is where it ends. The N-terminus has a free amino group, while the C-terminus has a free carboxyl group. These structural differences play a role in the function and stability of the protein.


What are the key differences between the n-terminus and c-terminus of a protein?

The N-terminus of a protein is the end where the amino acid chain starts, while the C-terminus is where it ends. The N-terminus typically has a free amino group, while the C-terminus has a free carboxyl group. These differences can affect the structure and function of the protein.


What are the structural differences between the N-terminus and C-terminus of a protein?

The N-terminus of a protein is where the amino acid chain starts, while the C-terminus is where it ends. The N-terminus has a free amino group, while the C-terminus has a free carboxyl group. These differences in chemical structure affect how proteins fold and function.


What r conditional loops and unconditional loops in c?

A conditional loop will only continue to loop while the given condition is true: while( i < 10 ) { ... } An unconditional loop either has no condition (a GOTO loop), or the condition is guaranteed to always evaluate to true: while( true ) { ... }


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.