Certificate/정보처리기사

[정보처리기사][요약] 10.프로그래밍 언어 활용

다닿 2026. 7. 10. 13:00

연산자 우선순위 

대분류 중분류 연산자 결합규칙
단항 연산자 단항 연산자 ! ~ ++ -- sizeof
이항 연산자 산술 연산자 * / %
시프트 연산자 << >>
관계 연산자 <= >= < >
== !=
비트 연산자 & and
^ xor
| or
논리 연산자 &&
||
삼항 연산자 조건 연산자 ? :
대입 연산자 대입 연산자 = += -= *= /= %= <<= >>= 
순서 연산자 순서 연산자 ,

 

Python

range(100) // 0~99
range(10,20) // 10~19
range(0,10,2) // 0,2,4,6,8
str[s:e] // s~e-1
str[s:e:n] // s~e까지 n씩 증가
str[:] // all
str[::] // all
str[s:] // s~all
str[:e] // 0~e
str[::n] // 0~all 증가값

배열[] 리스트 함수

pop(위치),index(값),count(값),extend([]),reverse(),sort(),copy()

세트{} 함수

pop(),add(값),update({}),remove(값)

 

 

C언어 표준 라이브러리

  • stdio.h
    printf,scanf,fprintf,fscanf,fcolse,fopen
  • math.h
    sqrt,pow,abs
  • string.h
    strlen,strcpy,strcmp
  • stdlib.h
    atoi,atof,srand,rand,malloc,free
  • time.h
    time,clock