Output Questions for Class 10 ICSE Computer Applications

If a = 0, b = 30, c = 40; then find the value of 'a' when:

a += --b + c++ + b;

Java

Java Operators

43 Likes

Answer

 a = 98

Working

    a = --b + c++ + b
⇒ a = 29 + 40 + 29
⇒ a = 98

Answered By

20 Likes