English

Name the value of ((1/0.0) - (1/-0.0))?

Advertisements

Question

Name the value of ((1/0.0) - (1/-0.0))?

Very Short Answer
Advertisements

Solution

In Java,

\[ \frac{1}{0.0} = +\text{Infinity} \]
\[ \frac{1}{-0.0} = -\text{Infinity} \]

Therefore,

\[ (+\text{Infinity})-(-\text{Infinity})=+\text{Infinity} \]
Positive Infinity (+Infinity).
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Variables and Expressions - EXERCISE [Page 132]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 6 Variables and Expressions
EXERCISE | Q 35. | Page 132
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×