A 4 byte float has the value: 0x7F800000. Its value as a floating point number is:

a. -39.482
b. +0.0
c. 11.0
d. +Infinity

Hey there, I was hoping to solve another problem but I need help. I was wondering how I would convert the value to the desired answer?

Another question.. what if the 4 byte float was a 8 byte float. How would it make a difference?

Thank you.

How do you think it should be done? This is a C programming question (class exercise I presume), no? Show us how you think it could be solved, and then we will try to help. Just don't ask us to do your work (school or otherwise) for you.

Hint: try casting the hex value to a float, and print the resulting value.