हिंदी

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×