프로그래밍 언어 활용난도 중상
6번 · 주관식 · 5점
다음 C 프로그램의 실행 결과를 쓰시오.
#include <stdio.h>
int main(void) {
char word[] = "REPUBLICOFKOREA";
int n = 0;
while (word[n] != '\0')
++n;
putchar(word[n - 2]);
return 0;
}복원 문항을 학습 가능한 표현으로 정리하고 ITPASSLAB이 답안 기준과 해설을 편집 검수했습니다. 자동 판정과 점수는 학습용 예상 결과입니다.
6번 · 주관식 · 5점
#include <stdio.h>
int main(void) {
char word[] = "REPUBLICOFKOREA";
int n = 0;
while (word[n] != '\0')
++n;
putchar(word[n - 2]);
return 0;
}