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

Why is not a pointer null after calling free?

587


What is structure pointer in c?

565


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

14943


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2681


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1853






int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1116


How can you draw circles in C?

614


Why do we need volatile in c?

737


Explain what is meant by high-order and low-order bytes?

627


What are file streams?

558


What is typedf?

662


What is a constant and types of constants in c?

594


write a program to create a sparse matrix using dynamic memory allocation.

4364


What is hashing in c?

636


c language interview questions & answer

1452