프로그래밍 언어 활용난도 중상
5번 · 주관식 · 5점
다음 C 프로그램의 실행 결과를 쓰시오.
#include <stdio.h>
struct Item {
int offset;
const char *text;
};
int main(void) {
struct Item items[] = {{1, "AB"}, {2, "DC"}, {3, "EB"}};
struct Item *p = &items[1];
printf("%s", p->text + (p->offset - 1));
return 0;
}