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
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What is the description for syntax errors?
How does normalization of huge pointer works?
What is the difference between class and object in c?
Explain what is a 'locale'?
How does pointer work in c?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
I came across some code that puts a (void) cast before each call to printf. Why?
Why do we use static in c?
What is the difference between exit() and _exit() function?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is #pragma statements?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
i want to know the procedure of qualcomm for getting a job through offcampus