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
How can you find the exact size of a data type in c?
can anyone suggest some site name..where i can get some good data structure puzzles???
Why are algorithms important in c program?
Explain what is the concatenation operator?
What is a class c rental property?
Why does everyone say not to use scanf? What should I use instead?
How can I change their mode to binary?
What is an lvalue in c?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
explain what is fifo?
Why is a semicolon (;) put at the end of every program statement?
Why should I prototype a function?
What are the 32 keywords in c?
What tq means in chat?
Write a program that accept anumber in words