What is the diffrent between while and do while statement ?

Answer Posted / namrata

In while first condition is checked if condition is not true
then while don't work and not give output but in do while
loop condition is checked when loop is worked at one time
and if the condition is not true then at least one time it
gives output it is the main difference between while & do
while loop.

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c a great language, or what?

616


What does return 1 means in c?

593


What is function prototype?

620


What are header files in c programming?

663


What is meant by initialization and how we initialize a variable?

595






Write a program to reverse a string.

648


Does c have an equivalent to pascals with statement?

580


How important is structure in life?

600


When can a far pointer be used?

601


What is typedf?

676


write a program to display all prime numbers

1461


Why do we use return in c?

575


What are unions in c?

592


Tell me with an example the self-referential structure?

576


In C programming, how do you insert quote characters (‘ and “) into the output screen?

904