An operator is a symbol used to operate the values of variables. There is a wide range of operators used in C programming, including –
Arithmetic Operators:
These are used to perform mathematical calculations such as addition, subtraction, multiplication, division, and modulus.
Relational Operators:
These are used to check the relation between two operands. If the relation is TRUE, it returns 1; If the relation is FALSE, It returns 0
Logical Operators:
These are used in decision-making operations. If the expression is TRUE, it returns 1; if the expression is FALSE, it returns 0.
Assignment Operators:
These are used to assign value to a variable. The most used assignment operator is ‘=’.
Increment and Decrement Operators:
These are used to change the value of an operand (constant or variable) by 1.
Bitwise Operators:
These are used to perform bit-level operations between two variables.
Special Operators:
There are some special operators in C used for:
sizeof(): Returns the size of the memory location
&: Returns the address of a memory location
*: Pointer of a variable