1)Unary operators:- are those operator which required only one operand(data).
2)Binary operator:- are those operator which required two operand for operation.they are also also five types.
- Arithmetic operators:-
syntax:- (if condition is true)?then value X else: value Y
- Bitwise operator:- it is of 6 types
- Relational operator:-it is also 6 type
- Logical operator:-it is of 3 types
- Assignment operator:-it is 5 types
3) Ternary operator :-
also known as conditional expression using ?: symbol
syntax:- (if condition is true)then value is x :otherwise value is Y
example:- x>0?printf("positive"):printf("non positive")
Comments
Post a Comment