ProAnswers.org

How to pass 2 dimensional arrays as parameter in C language?

in C, when passing two dimensional arrays the compiler needs to know the width so it can calculate memory offsets.

passing a 2d array of width 8:

void myfunc(type array[][8]);