Computer Applications
Write a difference between unary and binary operator.
Java Operators
ICSE 2012
ICSE 2019
54 Likes
Answer
unary operators operate on a single operand whereas binary operators operate on two operands.
Answered By
36 Likes
Related Questions
Evaluate the expression when x is 4:
x += x++ * ++x % 2;
Write a Java program to obtain principal amount, rate of interest and time from user and compute simple interest.
Evaluate the given expression when the value of a=2 and b=3
b*=a++ - ++b + ++a; System.out.println("a= "+a); System.out.println("b= "+b);