Primitive System Data Type in C99

MySprtlty·2023년 4월 19일
0

C

목록 보기
14/37

🏷️Primitive System Data Type (*_t)

  • Implementation마다 정의된 자료형의 크기가 제각각인 문제점을 해결하기 위해 C99 표준에 추가된 자료형이다.
  • 이는 표준은 최소 크기만 정의하기 때문이다.
  • C99에 의하면 아래와 같이 최소 크기만 정의한다.
    • short int: 2byte 이상
    • int: 2byte 이상
    • long int: 4byte 이상
    • long long int: 8byte 이상.
  • typedef unsigned int uint32_t;처럼 실제로는 typedef명칭이다.
    • 🖇️cf. uint32_t는 unsigned int 32bit다.
  • stdint.h에 선언되어 있다.

0개의 댓글