251. 구조체 배열의 필드 대입과 합
다음 C 프로그램의 실행 결과를 쓰시오.
1#include <stdio.h>23struct Item {4int qty;5int price;6};78int main() {9struct Item s[3];10int i, total;11for (i = 0; i < 3; i++) {12s[i].qty = i + 2;13s[i].price = s[i].qty * 3;14}15total = s[1].qty + s[2].price;16printf("%d\n", total);17return 0;18}