I'm trying to understand how to set a column of a two dimensional array to 0.
I follow this code snippet from C programming textbook by K.N. King.
int a[NUM_ROWS][NUM_COLS], (*p)[NUM_COLS], i;
...
for (p = &a[0]; p < &a[NUM_ROWS]; p++)
(*p)[i] = 0;
I genuinely don't understand how this works. Greatly appreciate any clarification.