Hi,
I found this technique for initializing/clearing arrays -- possibly on stack overflow.
int sample[10][zx1];
memset(sample,0,sizeof(sample));
I tested it on a sample program and it seems to work, but it bothers me. It's declared in string.h (says captain obvious) and doesn't seem to be intended for this use.
There were comments that for larger arrays it's faster than using a loop /assign.
Opinions?
Thanks,
hj