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 diffrent between while and do while statement ?

Answer Posted / ashok

(1)while loop is known as entry control loop.
and do while is known as exit control loop.

(2)in while loop first check given the condition & if it is
true then execute all statement of while loop.if it is
false then terminate control from loop.
and in do while loop first execute all statement of it and
then check condition, if yes it is true, then again do
while loop will execute, if it is false then terminate
control from loop,put semicolon after while statement.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you use a pointer to a function?

1120


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2765


What is hash table in c?

1033


What is static and volatile in c?

1234


#include { printf("Hello"); } how compile time affects when we add additional header file .

1913


How a string is stored in c?

1081


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1314


What are examples of structures?

1125


What is pointers in c?

1124


Is return a keyword in c?

1097


What is string length in c?

1114


Why do some versions of toupper act strangely if given an upper-case letter?

1080


Can we declare variable anywhere in c?

985


Using which language Test cases are added in .ptu file of RTRT unit testing???

4293


How can you draw circles in C?

1165