Chapter 3
They all give an int result with a value of 1
for true and 0 for false.
They all give an int result with a value of 1
for true and 0 for false.
They guarantee an order of evaluation: left to right, and stop as soon as
the overall result can be determined.
Break can be used to turn a switch statement
into a set of exclusive choices of action.
Continue has no special meaning in a switch
statement, but only to an outer do , while or
for statement.
Inside a while statement, the use of continue may cause the
update of the loop control variable to be missed. It is, of course, the
responsibility of the programmer to get this right.
Because the scope of a label doesn't extend outside the function that it
lives in, you can't use goto to jump from one function to another. Using
the longjmp library routine, described in Chapter 9, a form of function-to-function jump is supported, but not
a completely general one.
|
Printer-friendly version
The C Book
This book is published as a matter of historical interest.
Please read the
copyright and disclaimer information.
GBdirect Ltd provides up-to-date training and consultancy in
C,
Embedded C,
C++
and a wide range of
other subjects based on
open standards if you happen to be interested.
|