November 2001
Beginner to intermediate
816 pages
16h 3m
English
Binary operators are those operators that work with two operands. For example, a common binary expression would be a + b—the addition operator (+) surrounded by two operands. The binary operators are further subdivided into arithmetic, relational, logical, and assignment operators.
This is the first group of binary operators, those supporting arithmetic expressions. Arithmetic expressions are composed of two expressions with an arithmetic operator between them. This includes all the typical mathematical operators as expected in algebra.
The multiplication operator (*) evaluates two expressions and returns their product. Here's an example:
int expr1 = 3; int expr2 = 7; int product; ...
Read now
Unlock full access