I have a 2D array that defined as
int P[5][10];
for (int i=0;i<N;i++)
{
    for(int j=0;j<L;j++)
    {
        if(random()>0.5)
            P[i][j]=1;
        else
            P[i][j]=0;
    }
}
I want to make a function with input is P. The function allows us show the value of P. How to defined that function. I tried such as
void show_P(int P[][], int numcols,int numrows)
However, it is wrong. Could you help me fix it? Thanks
 
     
     
     
     
     
    