C# Basic - Operators
C# Basic - Operators
1
What are Operators in C#?
2
1. Types of Operators in C#:
1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Bitwise Operators
5. Assignment Operators
6. Unary Operators or Ternary Operator or Conditional Operator
3
1. Arithmetic Operators
4
2. Comparison Operators
Equal to (==): Checks if two operands are equal.Not equal to (!=): Checks if two operands
are not equal.
Greater than (>): Checks if the first operand is greater than the second.
Less than (<): Checks if the first operand is less than the second.
Greater than or equal to (>=): Checks if the first operand is greater than or equal to the
second.
Less than or equal to (<=): Checks if the first operand is less than or equal to the second.
5
3. Logical Operators
6
4. Conditional Operator (Ternary Operator)
The conditional operator evaluates a Boolean expression and returns one of two
values depending on whether the expression is true or false.
csharp
7
Operators
8
Operators
9
Thank You
www.codemindtechnology.com
10