필기4지선다어려움 · 30점
5418.
다음 C 프로그램을 실행했을 때 출력 결과는?
1#include <stdio.h>2#include <string.h>34int main(void) {5char s1[20] = "GRAPE";6char s2[20] = "MELON";7char *p = s1;8char *q = s2;9s1[1] = q[3];10s2[0] = p[4];11strcat(s1, s2);12printf("%c%c", *(p + 1), *(p + 5));13return 0;14}
필기 3과목 · 프로그래밍 언어 활용★★ 2회 출제 · 최근 2025년 1회