14 struct person andy = { "Andy", 33 };
16 printf("%s is %d years old!\n",
28 person_t andys = { "Andy Spencer", 33 };
30 printf("%s is %d years old!\n",
31 andys.name, andys.age);
37 person_t *who = &andys;
39 printf("%s is %d years old!\n",
40 (*who).name, (*who).age);
42 printf("%s is %d years old!\n",
54 union cake chocolate = {};
56 chocolate.have = "Yes please";
57 printf("Chocolate? %s!\n", chocolate.have);
58 chocolate.eat = "Yum";
59 printf("Chocolate? %s!\n", chocolate.eat);
60 printf("Chocolate? %s!\n", chocolate.have);
75 printf("Number: %08x\n", abc.number);
76 printf("String: %s\n", abc.string);