Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between while and do while?

Answer Posted / bhairavi

in while loop first condition is checked & then ++/-- is
done, in do while first whatever the condition given loop
execute atleast once ie.if i=0 the condition is while
(i<=0), i++ then also in do while loop i will increment
first & then it will check the condition so final value of
i will be 1

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between #include "..." And #include <...> In c?

982


What is volatile, register definition in C

1057


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1968


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1897


What is scanf_s in c?

1067


what is use of malloc and calloc?

1847


Tell us the use of fflush() function in c language?

1087


What are terms in math?

978


Why static variable is used in c?

978


What is the modulus operator?

1152


What is the use of structure padding in c?

1014


How can I find out if there are characters available for reading?

1055


How do you do dynamic memory allocation in C applications?

1045


Does c have circular shift operators?

1183


Explain built-in function?

1088