Computer Applications
If x = 5
and y = 4
, what will be the output of the following code?
x += ++y - x-- + y++;
System.out.println("x = " + x);
System.out.println("y = " + y);
Related Questions
Evaluate the following expression if the value of x=2, y=3 and z=1. v=x + --z + y++ + y
if (a>b&&b>c) then largest number is:
- b
- c
- a
- wrong expression
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);