Operations on the type named short
Assume that you have two instances of the type
short in a program. What are the operations that you can
perform on those instances? For example:
- You can add them together.
- You can subtract one from the other.
- You can multiply one by the other.
- You can divide one by the other.
- You can compare one with the other to
determine which is algebraically larger.
There are other operations that are allowed as
well that are not included in the above list.