Use this space to put some text. Update this text in HTML

468x60 banner ad

Advertise with Us

Powered by Blogger.

Friday 29 July 2016

Operators in C Sharp

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#.

There are mainly five built in operators types in C#.

  • Arithmetic Operators
  • Relational Operators
  • Logical Operators
  • Assignment Operators
  • Misc Operators