Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
teichman
· 15y ago · 0 comments
Can you elaborate on this?
Comments
[–]
matthavener
15y ago
In C, the array as a function parameter is different from an array as a variable/struct member. So, as a parameter, sizeof(x) is sizeof(int*). As a variable, sizeof(x) is sizeof(int[5]).