bit field in C
``` #include <stdio.h> struct date { unsigned int d : 5; unsigned int m : 4; int y; }; int main() { struct date dt = { 31, 12, 2014 }; printf("Date is %d/%d/%d", dt.d, dt.m, dt.y); return 0; } ```
``` #include <stdio.h> struct date { unsigned int d : 5; unsigned int m : 4; int y; }; int main() { struct date dt = { 31, 12, 2014 }; printf("Date is %d/%d/%d", dt.d, dt.m, dt.y); return 0; } ```