Computer Applications
If x = 3, y = 7, calculate the value of:
x -= x++ - ++y
Java Operators
68 Likes
Answer
x -= x++ - ++y
⇒ x = x - (x++ - ++y)
⇒ x = 3 - (3 - 8)
⇒ x = 3 - (-5)
⇒ x = 3 + 5
⇒ x = 8
Answered By
37 Likes
Related Questions
What will be the output of the following if x=5?
i. 5 * ++x
ii. 5 * x++What is type conversion? How is an implicit type conversion different from explicit type conversion?
If m=5, n=2; what will be the output of m and n after execution?
i. m -= n ii. n = m + m/n
Distinguish between the following:
/ and % operator