33,311
社区成员
发帖
与我相关
我的任务
分享
[root@localhost x]# cat x.c
# include <stdio.h>
void show(unsigned char * p, int n)
{
int i;
for (i = 0; i < n; i++)
printf("%hhx", p[i]);
printf("\n");
}
int main()
{
float a = .9762f;
show(&a, sizeof(a));
return 0;
}
[root@localhost x]# ./x
3ee8793f