假设我现在知道一个整形变量,4个字节,是16进制,我怎么通过指针把该变量的每一个字节的内容按16进制单独输出呢
int a=0xabcdef。char* c=&a;for(int i=0;i<4;i++) printf("%x ",c[i]);