Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: oligaz on July 28, 2009, 10:29:23 am

Title: How can I send a matrix into a function?
Post by: oligaz on July 28, 2009, 10:29:23 am
void xxx(int A[10][10])
{
  ...
}


or

void xxx(int (*A)[10])
{
  ...
}

int main()
{
  int A[10][10];
  xxx(A);
  return 0;
}


This code does not work!
Title: Re: How can I send a matrix into a function?
Post by: thomas on July 28, 2009, 10:34:34 am
And this is not a learning C/C++ forum.