200. 구조체 포인터로 복리 잔액 계산
다음 C 프로그램의 실행 결과를 쓰시오.
1#include <stdio.h>23struct Acct {4int year;5double bal;6};78void grow(struct Acct *a, double rate) {9a->bal = a->bal * (1 + rate);10a->year++;11}1213int main() {14struct Acct ac = {0, 800.0};15for (int i = 0; i < 3; i++) {16grow(&ac, 0.25);17}18printf("%d %.2f\n", ac.year, ac.bal);19return 0;20}