Y
Hacker News
new
|
ask
|
show
|
jobs
by
matthavener
5358 days 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]).