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

What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1392


Explain do array subscripts always start with zero?

1282


What are predefined functions in c?

1151


Why isn't any of this standardized in c? Any real program has to do some of these things.

1264


What the different types of arrays in c?

1122


Are there namespaces in c?

1185


Explain what are run-time errors?

1140


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1103


What is New modifiers?

1183


all c language question

2485


What are loops in c?

1064


What is const volatile variable in c?

1101


When should the volatile modifier be used?

1231


Explain why c is faster than c++?

1124


What is a struct c#?

1097