Solved

It Is Legal to Assign a Float Value to a Double

Question 11

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents