Next: Order of Precedence Up: Basic C Programming Previous: Comparison Operators

Logical Operators

Logical operators are usually used with conditional statements which we shall meet in the next Chapter.

The two basic logical operators are:

&& for logical AND,

|| for logical OR.

Beware & and | have a different meaning for bitwise AND and OR (more on this later in Chapter ).


drago@scri.fsu.edu
Jan. 1997