हिंदी

What is the result of evaluating the following expression? –32/6

Advertisements

प्रश्न

What is the result of evaluating the following expression?

–32/6

संख्यात्मक
Advertisements

उत्तर

Given expression:

–32/6

\[ =-\frac{32}{6} \]

= –5.3333

Since both operands are integers, Java performs integer division and discards the fractional part.

–5

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Variables and Expressions - EXERCISE [पृष्ठ १३२]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
अध्याय 6 Variables and Expressions
EXERCISE | Q 52. | पृष्ठ १३२
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×