210. 값에 의한 전달과 switch 흐름
다음 C 프로그램의 실행 결과를 쓰시오.
1#include <stdio.h>23void swap(int a, int b) {4int t = a;5a = b;6b = t;7}89int main() {10int x = 1, y = 3, r = 0;11swap(x, y);12switch (x) {13case 1: r += 10;14case 2: r += 20;15break;16case 3: r += 5;17}18printf("%d %d %d\n", x, y, r);19return 0;20}