Question: 8. (5 Points) The program below was intended to compute -1.0 0.25--0.25 using Q15 format arithmetic and to print out the result as a decimal

 8. (5 Points) The program below was intended to compute -1.0

8. (5 Points) The program below was intended to compute -1.0 0.25--0.25 using Q15 format arithmetic and to print out the result as a decimal number (that is-0.25), but it does not work as intended. #include #include "tistatypes.h" void main (void) int 16 a -1.0; Intl6 b 0.25; Int16 c printf("%f ", (float) c); a. Briefly explain what this program would actually do. b. How can the program be changed to make it work as intended

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!