Page 1 of 1

8) The Boolean variables b1, b2, and b3 are testing what happens when doubles and floats are repeatedly casted in differ

Posted: Sun Jul 03, 2022 11:22 am
by answerhappygod
8 The Boolean Variables B1 B2 And B3 Are Testing What Happens When Doubles And Floats Are Repeatedly Casted In Differ 1
8 The Boolean Variables B1 B2 And B3 Are Testing What Happens When Doubles And Floats Are Repeatedly Casted In Differ 1 (34.67 KiB) Viewed 16 times
8) 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. The variable bl will get set to value: short sl 15; char c1 = sl; bool b1 = (s1 == cl) = double d3 = 1.25; double d4 = bool b2 = (d3 == d4); float fl float f2 = bool b3 = = (float) (double) d3; 4.75f; -(-f1) fl; (fl - f2 == fl); - false The variable b2 will get set to value: false true false true The variable b3 will get set to value: true