Question: 1. Given the following C statements: printf(10.10 = %.151f , 10.10); printf(10.12 = %.151f , 10.12); printf(10.15 = %.151f , 10.15); Briefly explain why

1. Given the following C statements: printf("10.10 = %.151f ", 10.10); printf("10.12 

1. Given the following C statements: printf("10.10 = %.151f ", 10.10); printf("10.12 = %.151f ", 10.12); printf("10.15 = %.151f ", 10.15); Briefly explain why 10.12 doesn't display the value expected?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The issue with the second printf statement which displays the value of 1012 is related to the format ... View full answer

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 Programming Questions!