Question: The Boolean variables b 1 , b 2 , and b 3 are testing what happens when doubles and floats are repeatedly casted in different

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.
)==(c1
double d3=3.6250003232;
double d4=(float)(double) d3;
)==(d4;
float fl=11.5f;
float f2=-(-f1)-f1;
bool b3)==(f1;
The variable bl will get set to value:
false
true
The variable b2 will get set to value:
false
true
The variable b3 will get set to value:
false
true
 The Boolean variables b1, b2, and b3 are testing what happens

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!