정보처리기사 2021년 3회 64번
IT 위키
과목: 프로그래밍 언어 활용
1 문제[편집 | 원본 편집]
64. 다음 C언어 프로그램이 실행되었을 때의 결과는?
<br />#include <stdio.h><br />#include <string.h><br />int main(void) {<br /> char str[50]="nation";<br /> char *p2="alter";<br /> strcat(str, p2);<br /> printf("%s", str);<br /> return 0;<br />}<br />
- ① nation
- ② nationalter
- ③ alter
- ④ alternation
2 풀어보기[편집 | 원본 편집]
3 정답[편집 | 원본 편집]
- 2번