Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Yes, but if you are passing a 2D array to another function, you need to, one way or another, supply the size of all but the final dimension to the compiler. If you don't, it will not be able to do the math of multiplying the row-number by column-size, which it needs to do to find the data in a particular row/column pair.
If you want it to be fully-flexible, then you need to find another way to pass your matrix pointer (e.g. pointer to pointer or do your own math to calculate the row/column position)
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
so how should i approach this, my max matrix is 4 so i put that in the 2nd bracket, but it still gives me these off numbers
i sized the one on the right, ill try switching it
nope still gives me two single digit numbers and then some junk