#include #include struct date {short day, month, year;}; typedef struct date * Datep; typedef struct person { char * first; char * last; Datep birthday; struct person friend; } Person; int main(int argc, char ** argv){ Datep today = malloc(sizeof(Datep)); today->month = 2; today->day = 22; today->year = 2017; // jane is born today!! Person * jane = malloc(sizeof(Person)); jane->first = "Jane"; jane->last = "Doe"; jane->birthday = today; printf("jane: %s %s, %02d/%02d/%04d\n", jane->first, jane->last, jane->birthday.month, jane->birthday.day, jane->birthday.year); }