What is the diffrent between while and do while statement ?

Answer Posted / mahfooz

while(//condition checking)
{//if condition is true go inside loop.and its first check
condition then go inside loop.
}
but in do{
}while(//condition checking)..
it wiil go in loop first and then check condition..
it will go iside loop atleast one time..but in while it
may not go even in single time..

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about the use of bit field?

597


What is 'bus error'?

630


how to construct a simulator keeping the logical boolean gates in c

1710


What is the code for 3 questions and answer check in VisualBasic.Net?

1676


If the size of int data type is two bytes, what is the range of signed int data type?

573






hi any body pls give me company name interview conduct "c" language only

1647


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1495


What is the acronym for ansi?

616


Explain what is the difference between null and nul?

644


What is the purpose of main( ) in c language?

606


Explain b+ tree?

610


In a switch statement, explain what will happen if a break statement is omitted?

615


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3102


Explain what are the advantages and disadvantages of a heap?

588


What are the advantages and disadvantages of pointers?

563