News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

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."