Question: It is legal to assign a float value to a double . Which of these statement pairs is not valid? a. float salesTax = .05f;

It is legal to assign a float value to a double. Which of these statement pairs is not valid?

a. float salesTax = .05f;
b. double taxRate = .05;
c. float salesTax = taxRate;
d. double taxRate = salesTax;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!