[ create a new paste ] login | about

Link: http://codepad.org/HaF71oCO    [ raw code | output | fork ]

slevy1ster - C, pasted on Jun 6:
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;
}


Output:
1
1984


Create a new paste based on this one


Comments: