adplus-dvertising
frame-decoration

Question

Which of the following statements declares a variable that can contain a decimal number?

a.

dec payRate;

b.

dec hourlyPay

c.

float payRate

d.

float hourlyPay;

Answer: (d).float hourlyPay;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statements declares a variable that can contain a decimal number?