인디노트

프로세서 별 자료형 길이 본문

소스 팁

프로세서 별 자료형 길이

인디개발자 2022. 9. 3. 06:53

Share what I learned about this question recently.

The reason why we need such explicitly sized type, such as u32, is that the normal C data types are not the same size on all architectures.

The following image shows that long integers and pointers feature a different size on various platforms.

In this way, u32 can guarantee that you get 4 bytes long integer.

반응형
Comments