Reputation: 136
How to pass array[int] to function with out declare variable
void foo(int *arr);
foo([1,2,3,4]);
Upvotes: 1
Views: 60
Reputation: 67546
to be out
in the C# understanding
int *arr;
foo((arr = (int[]){1,2,3,4}));
Upvotes: 1