#include /** * Passing 2d array as array * note that the second dimension MUST be specified * The first may be, but it is not required. * @param fd -- the size of the first array dimension * @param sd - the size of the second array dimension * @param grid -- the array **/ int t(int fd, int sd, int grid[fd][sd]) { for (int i=0; i