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 entry control and exit
control statement?

Answer Posted / varsha

Entry checking loop works on while statement, Exit checking loop works on do....while statement.

Entry checking loop will check the condition at the very beginning and if the condition is false,it won't work......
The exit checking loop will check for the condition at the last and even if the condition is false,it will work at least once


Ex for entry controlled loop:
int i=6;
while(i<5)
{
System.out.println("hello");
}

Output:
no output...


Ex. for exit controlled loop:
int i=6;
do
{
System.out.println("hello");
}
while(i<5);

Output:
HELLO.....

Is This Answer Correct ?    8 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of pointers?

1105


what value is returned to operating system after program execution?

2178


Explain how can I pad a string to a known length?

1249


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1809


In a byte, what is the maximum decimal number that you can accommodate?

1196


What is the meaning of c in c language?

1244


Which header file is essential for using strcmp function?

1533


Explain the difference between the local variable and global variable in c?

1133


What does void main () mean?

1297


Write a C program to count the number of email on text

1965


What is the newline escape sequence?

1141


Why do we use return in c?

1046


Write a program to print fibonacci series using recursion?

1131


main() { printf("hello"); fork(); }

1248


How do you list a file’s date and time?

1108