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 are local static variables?

1133


Difference between Function to pointer and pointer to function

1054


Explain the concept and use of type void.

1099


Why do we use int main instead of void main in c?

1132


What is assignment operator?

1043


Can we use any name in place of argv and argc as command line arguments?

1058


How to get string length of given string in c?

1049


When should volatile modifier be used?

998


What is the purpose of clrscr () printf () and getch ()?

1059


Dont ansi function prototypes render lint obsolete?

1112


What is a header file?

1068


What is string concatenation in c?

1076


Explain is it better to bitshift a value than to multiply by 2?

1178


shorting algorithmS

2247


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

1109