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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 14 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply