Answers for "how to send array to function in c"

C
1

array reference argument

template<typename T, size_t N>
void foo(T (&bar)[N])
{
    // use N here
}
Posted by: Guest on November-29-2020
1

passing an array to a function in c

...
int arr[M][N];
...
void randomArrayFill(int arr[M][N]) {
//body
}
Posted by: Guest on September-08-2021

Code answers related to "how to send array to function in c"

Code answers related to "C"

Browse Popular Code Answers by Language