강의

멘토링

로드맵

Inflearn Community Q&A

jywhr98's profile image
jywhr98

asked

[10 minutes a day | C++] Introduction to C++ programming that anyone can easily learn

Function and Array

sizeof arr에서

Written on

·

403

0

3분 50초 쯤에서 sumArr함수 내에서 전달받은 arr의 size를 구할 때 , 제 코드상에선 전달받은 arr의 size가 8이 나오는데 이유가 무엇인지 궁금합니다 ㅠㅠ

C++

Quiz

What is the keyword for a function with no return value?

int

float

void

return

Answer 3

1

sumArr함수 내의 arr는 포인터이기 때문에 운영체제에 따라 32비트면 크기가 4, 64비트면 크기가 8입니다. woospace님은 64비트 운영체제의 컴퓨터라서 그런 것 같습니다.

0

포인터크기가 8바이트

0

저도 궁금합니다

jywhr98's profile image
jywhr98

asked

Ask a question