Ch. 2.14: Arithmetic Operators Flashcards
1
Q
What is a unary operator?
A
Unary operators require a single operand.
2
Q
What is a negation operator?
A
The minus sign before a variable.
3
Q
What is a binary operator?
A
Binary operators work with two operands.
4
Q
What is a ternary operator?
A
Ternary operators require three operands.
5
Q
What is integer division?
A
When both of the division operator’s operands are integers, the result of the division will also be an integer. If the result has a fractional part, it will be thrown away.