File tree 1 file changed +39
-3
lines changed
1 file changed +39
-3
lines changed Original file line number Diff line number Diff line change 558
558
559
559
560
560
561
- #### 2023년 2회
561
+ #### 2023년 2회 [5개 출제]
562
562
563
563
- 문제1. 다음 C언어로 구현된 프로그램에 54321 을 입력시킨 결과가 43215일 때, <처리조건>을 참고하여 괄호에 들어갈 알맞은 식을 쓰시오.
564
564
570
570
> - 0~9, (, ), [, ]
571
571
572
572
```C
573
- #include<stdio.h>
573
+ #include <stdio.h>
574
574
575
575
int main(void) {
576
576
590
590
}
591
591
```
592
592
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
+ - 박영희
You can’t perform that action at this time.
0 commit comments