News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

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