昨天去单位面试,有两道题目,各位大哥能帮我解决一下么?我是新来的,不知道怎么给分,谢谢各位了。 一. write a simple routine that shows(i.e. prints to stdout as a human-readable string) how a given 32-bit float is represented internally,in hexadecimal form. for example:3.1415929-> "dc 0f 49 40" //这个例子是怎么从float转到十六进制的???? notes: 1.you do not need to assume byte order.that is,"40490fdc" is as good as "dc0f4940" for the float 3.1415929 2.you may use the standard i/o functions such as printf(),where appropriate. 3.printf("%x",float) is not the correct answer,since %x requires an integer argrment. 我看了一下没有头绪,大家能给一个算法我,好么?