मराठी

What will be the output of the following code? If int y = 10 then find int z = ( ++y * (y++ + 5)); - Computer Applications

Advertisements
Advertisements

प्रश्न

What will be the output of the following code?

If int y = 10 then find int z = ( ++y * (y++ + 5));

थोडक्यात उत्तर

उत्तर

176

Working:

z = ( ++y * (y++ + 5))

= 11 * (11 + 5)

= 11 * 16

= 176

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

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×