[ create a new paste ] login | about

Link: http://codepad.org/ubIeQmeZ    [ 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
#include <stdio.h>

struct date {
 int year;
 char month;
 char day;
};

int main() {
 
 struct date birth = {1984,7,28};

 printf("%d, %d, %d\n",birth.year, birth.month, birth.day);
 // return 1820,28,28
 return 0;
}


Output:
1
1984, 7, 28


Create a new paste based on this one


Comments: