#include <stdio.h>
struct date
{
int day;
int month;
int year;
};
struct person
{
char name[50];
int age;
struct date birthdate;
};
int main()
{
struct person john;
strcpy(john.name, "John");
john.age = 25;
john.birthdate.day = 1;
john.birthdate.month = 1;
john.birthdate.year = 2000;
printf("Name: %s\n", john.name);
printf("Age: %d\n", john.age);
printf("Birthdate: %d/%d/%d\n", john.birthdate.day, john.birthdate.month,
john.birthdate.year);
return 0;
}