How to pass two dimensional array to a function? C?

Assume you are working with a 2 dimensional array defined as int myArray[10][10] and you want to pass it to a function. You define the function as void ArrayManip(int buf[][]) but you find you get a compile error. (Try it) What do you need to do to... show more Assume you are working with a 2 dimensional array defined as int myArray[10][10] and you want to pass it to a function. You define the function as

void ArrayManip(int buf[][])

but you find you get a compile error. (Try it) What do you need to do to resolve the error and get a clean compile?
4 answers 4