< Day Day Up > |
The arithmetic operators are listed in Table 5-2. They are straightforward, with a few exceptions.
The arithmetic operators are defined for all the numeric types and Boolean . The result type of an arithmetic operation depends on the type of the operands; in general, the result type of an operation between two different numeric types is the wider of the two types, since this type is most likely to be able to hold the result of the operation. |
< Day Day Up > |