필기4지선다보통 · 20점
5425.
다음 C 프로그램을 실행한 뒤 문자 q를 입력했을 때 출력 결과는?
1#include <stdio.h>23int main(void) {4char ch;5scanf("%c", &ch);6switch (ch) {7case 'p': printf("one ");8case 'q': printf("two ");9case 'r': printf("three "); break;10case 's': printf("four "); break;11}12return 0;13}
필기 3과목 · 프로그래밍 언어 활용★★ 2회 출제 · 최근 2026년 1회