You have to use pointers.
In other words this means - NO way.
All ways I can think of involves pointers in this or other form - pointers, arrays, even functions with indefinite number of arguments, etc.
Reason - to store an array in a program you never store each element in a different variable, you just store the start position, and then just do small steps to get others, or store a link in each element to the other one.
P.S. Maybe I'm not getting your question right, so you should consider rephrasing it, showing the cpp code of the matrix you want to pass and then asking the same question.
|