what is an operator.few types of operators
Answers
Answered by
4
Operators are those symbols which are used to perform specific tasks on operands .
Few types of operators are
In Java
Arithmetic operators -+ , - , * , /.
Logical operators - &, |, !.
Few types of operators are
In Java
Arithmetic operators -+ , - , * , /.
Logical operators - &, |, !.
ArpitaDas1:
Thank you
Answered by
5
an operator is a symbol or letters which is used to perform a specific operation on the operands
operator are mainly two types:-
1)unary operator- deals with one operand
e.g.
i.unary + (plus)
ii.unary - (minus)
2)binary operator- deals with two operands
e.g.
I.arithmetic operator(+,-,*,%,/)
ii. relational operator(<,<=,>,>=,==,!=)
iii.conditional operator(||,&&,!)
3)ternary operator- deals with three operands
e.g.
conditional assignment operator(?:)
operator are mainly two types:-
1)unary operator- deals with one operand
e.g.
i.unary + (plus)
ii.unary - (minus)
2)binary operator- deals with two operands
e.g.
I.arithmetic operator(+,-,*,%,/)
ii. relational operator(<,<=,>,>=,==,!=)
iii.conditional operator(||,&&,!)
3)ternary operator- deals with three operands
e.g.
conditional assignment operator(?:)
Similar questions