필기4지선다보통 · 20점

5425.

다음 C 프로그램을 실행한 뒤 문자 q를 입력했을 때 출력 결과는?

1#include <stdio.h>
2
3int main(void) {
4 char ch;
5 scanf("%c", &ch);
6 switch (ch) {
7 case 'p': printf("one ");
8 case 'q': printf("two ");
9 case 'r': printf("three "); break;
10 case 's': printf("four "); break;
11 }
12 return 0;
13}
필기 3과목 · 프로그래밍 언어 활용★★ 2회 출제 · 최근 2026년 1회
정답을 골라 누르면 바로 채점돼요

해설을 먼저 보거나 틀린 뒤 맞히면 필기 점수가 20%만 반영돼요.