O'Reilly logo

packetC Programming by Dwight Mulcahy, Ralph Duncan, Peder Jungck

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

C H A P T E R  12

image

Loops and Flow Control

Control Statements

Control statements direct the program to perform a set of operations repeatedly until some condition exists that terminates the repetition. packetC provides all of the C control statements. This includes for-loops, while-do, do-while, and do-until, as well as jump controls such as goto, break, continue, return, and exit. There are no surprises with regard to how packetC implements these control statements.

Looping (Iteration) Statements

Do_while Statement
do  statement  while  (  expression  )  ;

This construct executes its statement, which can be a compound statement, then evaluates ...

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