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
Dont ansi function prototypes render lint obsolete?
What is null character in c?
What is a pragma?
What is include directive in c?
What is the advantage of an array over individual variables?
How can I change their mode to binary?
How can you return multiple values from a function?
write a program to find out prime number using sieve case?
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;i
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What are loops c?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What is multidimensional arrays
Can you please explain the difference between strcpy() and memcpy() function?
What are the different types of control structures in programming?