/*fill a m x n grid with 0 or 1 */
I'm trying to return a pointer to the cell on the grid but I'm not getting the correct output..please help me figure out what I'm doing wrong.
need help with the following code:
/* Pointer to the beginning of the grid cell data where the cells are in a row-major layout */
cell_alpha * cells;
cell_alpha * abc_cell(grid * present_grid, int row, int column)
return &cell_alpha *(row*(grid->rows)+column); /*! Return a pointer to the corresponding cell on the grid. */