Question: Loss of precision Given the declaration: int a=1, b=2; float fa=3.0F, fb=4.0F; double da=5.0, db=6.0; which statement will cause the loss of precision error?
Loss of precision Given the declaration: int a=1, b=2; float fa=3.0F, fb=4.0F; double da=5.0, db=6.0; which statement will cause the loss of precision error? a. da=a+fb b. fa=da+fb a=a+b C. d. fa-fa+(float)b da=a+b e. Loss of precision Given the declaration: int a=1, b=2; float fa=3.0F, fb=4.0F; double da=5.0, db=6.0; which statement will cause the loss of precision error? a. da=a+fb b. fa=da+fb a=a+b C. d. fa=fa+(float)b da=a+b e.
Step by Step Solution
There are 3 Steps involved in it
Answer The statement that will cause a loss of precision error is b fadafb ... View full answer
Get step-by-step solutions from verified subject matter experts
