#include <stdio.h>
#define SIZE 20
struct Brand{
char name[SIZE];
int price;
};
int change_price(struct Brand);
int main(void)
{
struct Brand coke = {"coca cola", 120};
printf("%s %d\n", coke.name, coke.price);
cnange_price(coke);
printf("%s %d\n", coke.name, coke.price);
return 0;
}
int change_price(struct Brand)
{
/* 商品の価格を120から150に変更 */
return coke.price + 30;
}