HP C A.06.05 Reference Manual

Chapter 6 147
6 Statements
A program consists of a number of statements that are executed in sequence. A statement can
be one of the following types:
Assignment, where values, usually the results of calculations, are stored in variables.
Input/Output, data is read in or printed out.
Control, the program makes a decision about what to do next.
All statements end with a semicolon. Statements are grouped as follows:
Branch Statements
Compound Statement or Block
Expression and Null Statements
Labeled Statements
Looping Statements
Selection Statements
The following is a list of HP C statements:
break
continue
do…while
for
goto
•if
return
switch
while