#include struct pizza_t { char size[10]; //Offset 0 // padding 2 bytes int price_cents; //Offset 12 }; //Total 16 bytes struct pizza_t pizza_options[3] = { {"small", 300}, {"medium", 550}, {"large", 800} }; void print_pizza_t(struct pizza_t *pizza); void increase_price(struct pizza_t *pizza, int increase_cents); int main(void) { printf("The available pizza options are:\n"); for (int i = 0; i < 3; i++) { increase_price(&pizza_options[i], 100); print_pizza_t(&pizza_options[i]); } return 0; } void print_pizza_t(struct pizza_t *pizza) { printf("Size: %s, ", pizza->size); printf("price: %d cents\n", pizza->price_cents); } void increase_price(struct pizza_t *pizza, int increase_cents) { pizza->price_cents += increase_cents; }