CS 3304: Comparative Languages
Arithmetic Expressions
[
Course Documents
] : [
Arithmetic Expressions
]
Previous
Contents
Next
Keyword Index
Boolean Expressions
Operands are boolean and the result is boolean
C has no boolean type--it uses int, where 0 is false and nonzero is true
One odd characteristic of C's expressions: a < b < c is legal, but the result is not what you might expect
Operators: