void F(int **A, int N)
{
int i,j;
for(i=0;i<N;i++)
for(j=0;j<N;j++)
A[j]=((i+j)%2==0)?1:-1;
}
I have never used such a thing before, so it might be a really stupid question but I cannot find the answer.
I have that function, but I don't know how to use it.
How should I call this function? How can I pass the first parameter?
Thank you
{
int i,j;
for(i=0;i<N;i++)
for(j=0;j<N;j++)
A[j]=((i+j)%2==0)?1:-1;
}
I have never used such a thing before, so it might be a really stupid question but I cannot find the answer.
I have that function, but I don't know how to use it.
How should I call this function? How can I pass the first parameter?
Thank you