Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started