User forums > Using Code::Blocks

How can I send a matrix into a function?

(1/1)

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:
And this is not a learning C/C++ forum.

Navigation

[0] Message Index

Go to full version