266. 구조체 포인터의 화살표와 증감 연산자 우선순위
다음 C 프로그램의 실행 결과를 쓰시오.
1#include <stdio.h>23struct Item {4char id;5int x;6};78int main() {9struct Item s[4] = {{'A', 10}, {'B', 20}, {'C', 30}, {'D', 40}};10struct Item *p = s;11p++;12printf("%c %d\n", p->id, (p + 1)->x);13int u = p++->x;14int v = ++p->x;15printf("%d %d %c\n", u, v, p->id);16printf("%d\n", s[2].x + (p + 1)->x);17return 0;18}