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

How do I round numbers?

606


How many main () function we can have in a project?

621


Differentiate Source Codes from Object Codes

829


Explain the use of #pragma exit?

703


What is the difference between union and anonymous union?

841






What are nested functions in c?

570


Why & is used in scanf in c?

629


what is reason of your company position's in india no. 1.

1781


Can a local variable be volatile in c?

584


Explain what is the concatenation operator?

631


What is a lookup table in c?

633


Create a simple code fragment that will swap the values of two variables num1 and num2.

823


What is a macro?

661


What is the use of structure padding in c?

569


What is the purpose of type declarations?

683