Identify the operator that gets the highest precedence while evaluating the given expression:
x + y * z / w - p
2 Likes
*
Reason — * and / have the highest precedence. Since * appears first in the expression, it takes precedence during evaluation.
/
Answered By
1 Like
Evaluate the expression when x is 4:
x += x++ * ++x % 2;
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);