NPTEL

C Programming: Loop in C (Courtesy : NPTEL)

 

Reflection Spot:(0.0.45 second)

Suppose any programmer want to use the repeated code in c program than how it will be implemented?

Learning by doing Activities.

(1) What is the entry control loop?

a. while loop

b. do while loop

c. for loop

d. all of the above

(2) What is the exit control loop?

a. while loop

b. do while loop

c. for loop

d. all of the above

(3) In which loop at least on time the loop is execute if the condition is false at first time ?

a. while loop

b. do while loop

c. for loop

d. all of the above

 

Learning exTension Resources:

Example using while loop

 

 

4 thoughts on “C Programming: Loop in C (Courtesy : NPTEL)”

Leave a comment