मराठी

Give the output of the following expression:a+= a++ + ++a + -- a + a--; when a = 7; - Computer Applications

Advertisements
Advertisements

प्रश्न

Give the output of the following expression:
a+= a++ + ++a + -- a + a--; when a = 7;

थोडक्यात उत्तर
टीपा लिहा

उत्तर

39

Working:

a+= a++ + ++a + --a + a--;

a = a + (a++ + ++a + --a + a--)

= 7 + (7 + 9 + 8 + 8)

= 7 + (32)

= 39

shaalaa.com
Introduction of Object-oriented Programming
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.04: Operators in Java - EXERCISES [पृष्ठ ४४]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.04 Operators in Java
EXERCISES | Q V. 6. (c) | पृष्ठ ४४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×