This problem is an example of the dreaded C-style (2 dimensions only) array. You need to hard code the number of columns, let the number of rows to count themselves and then, without pointers, pass the array to the function without changing its name to 'minnie' without indicating how and why.