C# support an extensive set of operators. Most of these operators are symbols such as +, -, *, etc. and specify which operations are to be performed in an expression. The special operators such as new, is, as, typeof, sizeof, etc. are names and not symbols. So these operators are known as named operators. These operators are summarized in the following table.
|Arithmetic||+||The + operator can function as either a unary or a binary operator. General Form:- As unary operator: – +expression Example:- int x=10; int y; y=+x; General Form:- As binary operator: – expression1+expression2 Example:- int x=10,y=2,z; z=x+y;|
|–||The – operator also can function as either a unary or a binary operator. General Form:-