Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
uecker
22 days ago
|
parent
|
context
|
favorite
| on:
GCC SC approves inclusion of Algol 68 Front End
You can pass it by value when putting it into a struct. You can also pass a pointer to the array instead of letting it decay.
void foo(int (*arr)[4]);
int arr[4]; foo(&arr);
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
void foo(int (*arr)[4]);
int arr[4]; foo(&arr);