unsigned char * b = (unsigned char*)&a; æéb, æåaçé¦å°åã
æä¹ç®åºæ¥çï¼
ä»ä¼ æå¨ä¼ è¿æ¥çCD CC CC 41, å°ç«¯ç çè¯ï¼å个åèå
容 åå 为 0x41cccccd
转 float 为 25.6ã
ä½ å¯ä»¥ èªå·± ç¨ èåä½ ç 究ï¼
union U{
float v;
unsigned char c[4];
unsigned int i;
}uu;
温馨提示:答案为网友推荐,仅供参考