정보처리기사 2022년 2회 62번

IT위키

과목: 프로그래밍 언어 활용

문제[편집 | 원본 편집]

62. 다음 C언어 프로그램이 실행되었을 때, 실행 결과는?

<br />#include <stdio.h><br />int main(int argc, char *argv[]) {<br />    int a=5, b=3, c=12;<br />    int t1, t2, t3;<br />    t1=a && b;<br />    t2=a || b;<br />    t3=!c;<br />    printf("%d, t1+t2+t3);<br />    return 0;<br />}<br />
  • ① 0
  • ② 2
  • ③ 5
  • ④ 14

풀어보기[편집 | 원본 편집]

정답[편집 | 원본 편집]

  • 2번

해설[편집 | 원본 편집]

같이 보기[편집 | 원본 편집]