Introduction to Operators in C

This Operators in C Post is giving introduction to operators in C language including, what is operator, difference between operator and operand, classifications and sun classifications


 

Operator:

  • Operator is a symbol that performs operation on one or more operands.
  • Operand can be a value, variable, function ….

 

 

Operators classified into :

  • Unary : Performs operation on single operand.
  • Binary : Performs operation on 2 operands.
  • Ternary : Performs operation on 3 operands.

 

Types of Operators :

  1. Assignment operator
  2. Arithmetic operators
  3. Conditional operator
  4. Modify(increment / decrements) operators
  5. Relational operators
  6. Logical operators
  7. Bit-wise operators
  8. Shift operators
  9. Compound assignment operators
  10. Address operator
  11. sizeof operator
  12. Pointer operator
Share this