#include<stdio.h>
#include<stdlib.h>
#include<string.h>
enum days {mon, tue, wed, thu, fri, sat, sun};
typedef enum days days_t;
struct personal_info {
char name[32];
int age;
char *addr;
};
typedef struct personal_info person;
typedef struct {
int x;
int y;
} pair;
typedef int my_int;
int main()
{
days_t d;
person david;
pair p;
my_int x;
d = mon;
strcpy(david.name, "john");
david.age = 20;
p.x = 5;
p.y = 7;
x = 42;
printf("Size of 'person' struct is %ld\n", sizeof(person));
printf("David's name is %s\n", david.name);
printf("The pair 'p' is (%d, %d)\n", p.x, p.y);
printf("'x' is %d\n", x);
return 0;
}