News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How can I send a matrix into a function?

Started by oligaz, July 28, 2009, 10:29:23 AM

Previous topic - Next topic

oligaz

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!

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."