/* Kelly & Pohl Exercise 12.1, p. 424 */ /* */ /* Lone Leth Thomsen, 11. April 2003 */ #include #include struct food { char name[15]; int portion_weight; int calories; }; struct food meal[10]; int main(int argc, char* argv[]) { meal[0].name[0] = 'a'; meal[0].name[1] = 'p'; meal[0].name[2] = 'p'; meal[0].name[3] = 'l'; meal[0].name[4] = 'e'; meal[0].name[5] = '\0'; meal[0].portion_weight = 4; meal[0].calories = 200; return 0; }