| |
|
C Operators
There are so many types of operations thats are arithmetic, logical, bitwise etc. We use operator to perform different operations. There are following 8 types of operators which is used to operation in C language.
(1)Arithmetic Operators
(2)Relational Operators
(3)Shift Operators
(4)Logical Operators
(5)Bitwise Operators
(6)Ternary or Conditional Operators
(7)Assignment Operator
(8)Misc Operator
Precedence of Operators in C
Precedence of operator species that which operator will be evaluated first and next. Here associativity specifies the operator direction to be evaluated and it may be left to right or right to left.
Below is the example which help us to understand the Precedence of Operators
int value=10+30*10;
The value variable will contain 310 here because (multiplicative operator) is evaluated before + (additive operator).
The precedence and associativity of C operators is given below:
| |
|
|
|
|