C출력 결과기초 · 10점

125.

다음 C 프로그램의 실행 결과를 쓰시오.

1#include <stdio.h>
2
3struct Point {
4 int x;
5 int y;
6};
7
8int main() {
9 struct Point a = {2, 6};
10 struct Point *p = &a;
11 a.x = a.x + 1;
12 p->y = 4;
13 printf("%d %d\n", p->x, a.y);
14 return 0;
15}

해설을 먼저 보면 이후 정답 시 점수가 50%만 반영됩니다.