20.3k views
4 votes
What is the value of the variable double dNum=14/5?

1 Answer

2 votes

Answer:

2.0

Step-by-step explanation:

In the case where the result is cast to a double, the answer evaluated to an in type (2) then was cast to a double which gives you 2.0.

User Saeed Ghareh Daghi
by
7.8k points