我用共用体将一个Float的各个字节输出来下面是我做的,但给果不行#include<stdio.h>main(){ union f { float a; char b[4]; }; union f r; int i,m; scanf("%f",&r.a);
printf("%d\t",r.b[0]);}
#include<stdio.h>main(){union f { float a; char b[4]; }; union f r; int i,m; scanf("%f",&r.a);
printf("%f\t",r.a);}