Posts

operators

Image
Introduction: An operator is a symbol that is used to perform certain Mathematical and logical Manipulations . An operator is basically used in programs to manipulate data and variables. There are some types of of operators that supports C# language. 1.      Arithmetic operators 2.      Logical operators 3.      Relational operators 4.      Assignment operators 5.      Conditional operators 6.      Bitwise operators 7.      Increment and Decrement operators 8.      Special operators       1. )   Arithmetic operators : The operators +,-,*,/ and % is known as arithmetic operators.These all operators work the same as they work in other language.We can not use these operators on Boolean type. Arithmetic operators are used as shown below: x - y x + y x * y x / y x % y Note :- Here x and y are known as operands. There are three types of arithmetic operators which is shown below:       1.1 ) Integer Arithmetic      1.2 ) Real Arithmetic      1.3 )