프로그래밍 언어 활용난도 중상
15번 · 주관식 · 5점
다음 C 프로그램의 실행 결과를 쓰시오.
#include <stdio.h>
#include <string.h>
int main(void) {
char text[10] = "abc";
strcpy(text + 3, "de");
printf("%d", (int)strlen(text) + (text[4] - 'a') + 1);
return 0;
}공개된 출제 정보를 바탕으로 재구성한 학습 문항입니다. 자동 판정과 점수는 학습용 예상 결과입니다.
15번 · 주관식 · 5점
#include <stdio.h>
#include <string.h>
int main(void) {
char text[10] = "abc";
strcpy(text + 3, "de");
printf("%d", (int)strlen(text) + (text[4] - 'a') + 1);
return 0;
}