Inflearn brand logo image

Inflearn Community Q&A

ddlovesbread28's profile image
ddlovesbread28

asked

Learn C Programming by Following Along with Hong Jeong-mo

4.2 sizeof operator

size of pointer

Written on

·

217

0

10:18 에서 콘솔창에 size of pointer = 4 bytes

라고 뜨는데 저는 4바이트가 아니라 8바이트로 뜨는데

왜 그런건가요?

코드는 똑같이 작성했습니다.

c

Answer 1

0

안녕하세요 :)

이는 x86과 x64의 차이입니다.

8바이트로 나온 건 x64로 빌드하셨기 때문입니다.

(시스템 환경에 따라 포인터 크기는 다릅니다. 이 링크를 참고해보세요^^)

 

 

 

감사합니다.

 

 

ddlovesbread28's profile image
ddlovesbread28

asked

Ask a question