Hey,
When quick googling didn't really clarify, I'd like to ask here.
When declaring an N-dimensional array, 2D in this case, how to set them all to zero? For 1D arrays it should work with
type name[n] = {0};
Is the same approach also guaranteed to work for N-Dimensional arrays and does it matter if they are with non-constant values or with them? (i.e. char buf[20][n] <-> char buf[20][10]; )
And if they can't be made completely zero with that, how do you suggest making them zero? Are 2D arrays with constant sizes always "behind" each other? (in one continuous block of memory?)
Thanks in advance,
Nick