표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력
#include <stdio.h> typedef union { unsigned char a; unsigned short b; unsigned int c; } SHAREDATA; int main(void) { SHAREDATA var; var.c = 0x12345678; printf("%x\n", var.a); printf("%x\n", var.b); printf("%x\n", var.c); return 0; }