Solved

It Is Legal to Assign a Float Value to a Double

Question 6

Multiple Choice

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;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions