an array function...

ddp

Joined
Oct 23, 2008
Messages
1
Reaction score
0
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. :oops:

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top