Passing 2D array into function

I've a question regarding C++.

Let's say I have a function which searches an array for a specific number.

I also have a two-dimensional array which I will fill with random numbers that has 10000 rows and 50 columns, otherwise known as Arr[10000][50].

I want to pass that array into the function 10000 times, each time searching every column of a particular row. How do I pass it through, or specifically how do I set up the prototype and how do I call the function?
Rather than passing the entire 2D array into the function, you can just pass the array in the particular row you want to search. For instance:

1
2
3
4
for (int i = 0; i < 10000; i++)
{
    searchArray(Arr[i], 50)
}


where searchArray's header looks like:

 
void searchArray(int arr[], int size);
Ugh, now I feel like an idiot. The whole time, all I had to was change

void searchArray(int arr[][50], int size);

to

void searchArray(int arr[], int size);

Well, thank you kindly for the help.
Topic archived. No new replies allowed.