Skip to content

Commit bc1a258

Browse files
committed
240625 정보처리기사 실기 - C언어 (2023-2회 3번)
1 parent f7c3503 commit bc1a258

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

EIP/C/README.md

+39-3
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@
558558
559559
560560
561-
#### 2023년 2회
561+
#### 2023년 2회 [5개 출제]
562562
563563
- 문제1. 다음 C언어로 구현된 프로그램에 54321 을 입력시킨 결과가 43215일 때, <처리조건>을 참고하여 괄호에 들어갈 알맞은 식을 쓰시오.
564564
@@ -570,7 +570,7 @@
570570
> - 0~9, (, ), [, ]
571571
572572
```C
573-
#include<stdio.h>
573+
#include <stdio.h>
574574
575575
int main(void) {
576576
@@ -590,4 +590,40 @@
590590
}
591591
```
592592

593-
- 답 : n[(i+1)%5]
593+
- [] n[(i+1)%5]
594+
595+
- 문제3. 다음 C언어로 구현된 프로그램에 홍길동, 김철수, 박영희 가 순서대로 입력될 때, 알맞은 출력값을 쓰시오.
596+
597+
```c
598+
#include <stdio.h>
599+
#include <stdlib.h>
600+
601+
char n[30];
602+
char *test() {
603+
printf(입력하세요 : );
604+
gets(n);
605+
return n;
606+
}
607+
608+
int main()
609+
610+
{
611+
char * test1;
612+
char * test2;
613+
char * test3;
614+
615+
test1 = test();
616+
test2 = test();
617+
test3 = test();
618+
619+
printf("%s\n",test1);
620+
printf("%s\n",test2);
621+
printf("%s",test3);
622+
623+
}
624+
```
625+
626+
- [답]
627+
- 박영희
628+
- 박영희
629+
- 박영희

0 commit comments

Comments
 (0)