#include "stdio.h"
#include "stdlib.h"
//c union example
typedef union
{
long i64;
int i32;
short i16;
char i8;
} Block;
typedef enum
{
I64,
I32,
I16,
I8
} Tag;
int main(void) {
printf("sizeof block: %d\n", sizeof(Block));
Block g;
g.i8 = 46;
printf("The char is %c\n", g.i8);
printf("The number is %d\n", g.i8);
printf("sizeof tag is %d", sizeof(Tag));
return 0;
}