The Basic Operators in C#
The basic set of operators supported by the C# language is essentially the same as those supported by C and C++. You can group the available operators into the following categories: arithmetic, relational, logical assignment, and type operators. The conditional operator is in a category by itself.
Table 4-1 shows the list of available arithmetic operators.
|Unary Plus||res = +x;||Returns the value of x.|
|Unary Minus||res = -x||Returns zero minus x.|
|Addition||res = x + y||Adds x and y. Also used for string concatenation.|
|Subtraction||res=x - y||Subtracts y from x. When checked, will throw an OverflowException if the result is outside the range of the result ...|