KnowledgeBoat Logo
|

Computer Applications

Evaluate the following if the value of x = 20 and y = 20 and z = 10

z *= ++x * (y--) - y

Java Operators

6 Likes

Answer

    z *= ++x * (y--) - y
⇒ z = z * (++x * (y--) - y)
⇒ z = 10 * (21 * (20) - 19)
⇒ z = 10 * (420 - 19)
⇒ z = 10 * 401
⇒ z = 4010

Answered By

3 Likes


Related Questions