O'Reilly logo

C Programming by Ashok Kamthane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5

Loop Control Statements

CHAPTER OUTLINE
5.1 WHAT IS A PROGRAM LOOP?

A program loop is defined as a block of statements, which are frequently executed for certain number of times even though these statements come into view once in a program. This loop is also known as iterative ­structure or repetitive structure.

 

TABLE 5.1 Loops in C

for while do-while
for(expression-1;    expression-2;    expression-3)statement; expression-1;while(expression-2){statement;expression-3;} expression-1;do{statement;expression-3;}while(expression-2);

The C ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required