answersLogoWhite

0

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

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

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.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between do and while loops in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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.


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


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


What loops does not need a counter?

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


What is the difference between LDPE and PVC?

the difference is that in pvc h-c is replaced with c-cl. c-cl is less oxidisible by air while h-cl is oxidisable hence flamable while cl-c doesn't


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 is the Difference between c and shell program execution?

The shell interprets the script, while the C-compiler generates a binary executable.


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 the difference between C and advanced C?

The difference between C and the advanced C is that C is basic. On the other hand, the advanced C is thorough and to the detail.


Difference between C and C programming language?

The C and C programming languages are one and the same. There is no difference between those languages.