what is the difference between entry control and exit
control statement?

Answer Posted / rahul singh

entry controlled loop first test the terminating condition and then execute the loop body.If the condition is found true he loop body is execute other wise the loop terminates.It is also called pre-tested loop.or Top -Tested loop.
An exit control loop first execute the loop bod and then test the terminating condition.If the condition is found true the loop body execute again otherwise the loop terminates.It is also called Post Tested loop or Bottom Tested loop.

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Dont ansi function prototypes render lint obsolete?

831


What is null character in c?

882


What is a pragma?

889


What is include directive in c?

860


What is the advantage of an array over individual variables?

993


How can I change their mode to binary?

904


How can you return multiple values from a function?

852


write a program to find out prime number using sieve case?

1868


You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2954


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1946


What are loops c?

814


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

880


What is multidimensional arrays

869


Can you please explain the difference between strcpy() and memcpy() function?

822


What are the different types of control structures in programming?

893