#include <stdio.h> #include <stdlib.h> int main() { long frame_size = 0x12345678; union { int a; long b; char c; }m; m.b = 0x12345678; printf("Hello world! frame_size is %x\n",(char)frame_size); // 0x78 printf(" hello world c is %x\n",m.c); // 0x78 printf(" long size is %x\n",sizeof(long)); // return 0; }