프로그래밍 언어 활용난도 중상
10번 · 주관식 · 5점
다음 C 프로그램에서 포인터 상대 인덱스가 원본 문자 배열을 바꾸는 위치를 확인하여 출력 결과를 쓰시오.
#include <stdio.h>
int main(void) {
char word[] = "SECURE";
char *cursor = word + 2;
cursor[2] = 'I';
printf("%c-%s-%c", *cursor, cursor, word[5]);
return 0;
}