In C# Operators are symbols that are used in computer program for performing the operation.
Operators are used within an expression or statement to specify
the operations to be performed during evaluation of the expression.
Operators can be applied to one or more operands in an expression or statement.
The sections list the C# operators starting with the highest precedence to the lowest. The operators within each section share the same precedence level.
Operators that take one operand, such as the increment operator (++) or new, are referred to as unary operators.
Operators that take two operands, such as arithmetic operators (+,-,*,/), are referred to as binary operators.
One operator, the conditional operator (?:), takes three operands and is the sole ternary operator in C#.
Operators can be applied to one or more operands in an expression or statement.
The sections list the C# operators starting with the highest precedence to the lowest. The operators within each section share the same precedence level.
Operators that take one operand, such as the increment operator (++) or new, are referred to as unary operators.
Operators that take two operands, such as arithmetic operators (+,-,*,/), are referred to as binary operators.
One operator, the conditional operator (?:), takes three operands and is the sole ternary operator in C#.
There are mainly five built in operators types in C#.
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Assignment Operators
- Misc Operators
No comments :
Post a Comment
Ask a Question?