Question: 10) The Boolean variables b1,b2, and b3 are testing what happens when doubles and floats are repeatedly casted in different ways. Circle the correct value

10) The Boolean variables b1,b2, and b3 are testing what happens when doubles and floats are repeatedly casted in different ways. Circle the correct value that each variable gets set to. double dl = 2.47387287237832; The variable bl will get set to value: double d2 = (double) (float) dl; bool b1 = (dl == d2); false true The variable b2 will get set to value: double d3 = 3.75; double d4 = (double) (float) d3; bool b2 = (d3 == 04); false true The variable b3 will get set to value: float f1 10.25; float f2 = -(-fl); bool b3 = (f1 == f2); false true
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
