Reading ceratin type of data from table

Hello I am using standard C and have a question. I would like to check if an element from the table equals #. I have the following.

char table[1000][1000]; //1000 rows

char table[0][1000] = '#';

how can I write an if statement like:

if(table[0] == '#'){
char table[1000][1000];
reserves million bytes from stack and sets name "table" to point to it as 2D array that has 1000 char per row.

char table[0][1000] = '#';
makes no sense at all.

If "table" represents a 2D array, then the type of "table[0]" is a pointer, but elements within the array are referenced "table[y][x]".
Topic archived. No new replies allowed.