1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <stdio.h> union date { int year; char month; char day; }; int main() { union date birth; birth.year = 1984; //birth.month = 7; //birth.day = 28; printf("%d",birth.year); // return 1820? return 0; }
1
1984