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

Why double pointer is used in c?

568


Which header file should you include if you are to develop a function which can accept variable number of arguments?

811


Where we use clrscr in c?

708


Who is the founder of c language?

687


why we wont use '&' sing in aceesing the string using scanf

1785






What is fflush() function?

645


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1785


What are the keywords in c?

644


What are header files in c?

619


What happens if a header file is included twice?

601


In which language linux is written?

606


What is a double c?

592


define string ?

669


What are valid signatures for the Main function?

702


What is meant by type casting?

629