C Language



Admission Enquiry Form

  

Operators in C




What is Operator in C Programming?

Operator is symbol which works on operand and instruct the compiler to do a particular job.Operators are the foundation of any programming language. Thus the functionality of C programming language is not complete without the use of operators because these are used to performs the operations.

res=num1+num2;

So, in the above example res,num1,num2 are operands. +,= are operators and res=num1+num2; is an expression.

What is Operand in C?

The value given to the operator for operation is known as Operand in C.

What is Expression in C?

The combination of Operator and Operands is Known as Expression in C.




Types of Operators in C

There are three types of Operators in C:

  1. Unary Operators
  2. Binary Operators
  3. Bitwise Operators
  4. Ternary Operators

Unary Operators

Unary operators are those operators which works on one or single operand.

Binary Operators

Binary operators are those operators which works on two operands.

Bitwise Operators

Operators which are used to perform bit-level operations in C programming are called bitwise operators.

Ternary Operators

Ternary operators are those operators which works on three operands.