# Operators in C

An operator is a symbol that helps us to perform specific mathematical and logical computation operation on a value or a variable.

There are following types of operators to perform different types of operations in C language.

1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Bitwise Operators
5. Assignment Operators
6. Other Operators

## Arithmetic Operator

An arithmetic operator performs mathematical operations such as addition, subtraction, multiplication, division etc

## Relational Operators

A relational operator checks the relationship between two operands. If the relation is true, it returns 1; if the relation is false, it returns value 0.

Relational operators are used in decision making.

## Logical Operator

Logical operators are used in decision making in C programming. An expression containing logical operator returns either 0 or 1 depending upon whether expression results true or false.

## Bitwise Operator

The Bitwise operators is used to perform bit-level operations on the operands. The operators are first converted to bit-level and then the calculation is performed on the operands.

## Assignment Operator

Assignment operators are used to assigning value to a variable. The left side operand of the assignment operator is a variable and right side operand of the assignment operator is a value.

## Other Operators

It includes `sizeof ()`  and Ternary operators, Comma Operator.

`sizeof()` is a unary operator that returns the size of data (constants, variables, array, structure, etc.

Comma acts as both operator and separator.comma operator has the lowest precedence of any C operator. Comma operators are used to link related expressions together.

&:- Returns the address of a variable.

Ternary operators / Conditional Operator- ?