Does anyone know how to use a for loop to clear a 2D array? To clear a 1D array, for example you might do this:
char array[10];
for (int ct; ct<=10; ct++)
{
array[ct] = "\0";
}
What I'd like to know is how to clear a 2D array in the same way. I believe I will have to nest two or more for loops. All help is appreciated!! Thanks!! ^_^