272: Highlights
- A predicate is a function that returns
0
or
1
.
- In C++,
0
means false, and 1
means true.
- The
!
operator means not
; the !
operator
transforms 0
into 1
and any integer other than
0
into 0
.
- If you want to force the conversion of a value of one type
into the corresponding value of another type, then you must cast
the value by instantiating the following pattern:
(type) expression
- If you want to compare two numbers of different types, then
you must cast one to match the type of the other.