In simple word operators are those which operator anything like as data,maths,information etc i.e.. When we talking about C operators, i want to say you that C is very rich in operators. Operators tells to compiler that what do with data. There are mainly operators in c as following:
- Logical Operators
- Bitwise Operators
- Relational Operators
- Assignment Operators
- Sizeof Operators
- Increment and Decrement operators
- Comma operators
- Type cast operator
- Conditional operators or ternary operators
Sometime operators are divided according numbers of operands. So there are three types of operators as following :
Operators
Unary Binary Ternary
operand single double third
works right to left left to right left to right
Example_1 ++ , -- +, -, *, / ? :
Example_2 ! , ~ && , ||
No comments:
Post a Comment