Computer Applications
Evaluate the following expression if the value of x=2, y=3 and z=1. v=x + --z + y++ + y
Java Operators
ICSE 2019
45 Likes
Answer
v = x + --z + y++ + y
⇒ v = 2 + 0 + 3 + 4
⇒ v = 9
Answered By
31 Likes
Related Questions
Write a Java program to obtain principal amount, rate of interest and time from user and compute simple interest.
A student executes the following code to increase the value of a variable ‘x’ by 2.
He has written the following statement, which is incorrect.
x = +2;What will be the correct statement?
A. x +=2;
B. x =2;
C. x = x +2;- Only A
- Only C
- All the three
- Both A and C