KnowledgeBoat Logo

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