How do you set a multi-dimentional array to 0?

 
How do you set a multi-dimensional array to 0? Or how do you set the default value of a multi-dimensional array?

thanks
 
Well, what value do you get when you create it?

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start(){


double array[32][32][32];

	int i, j, k, count;
	Print("start");
	for ( i = 0; i < 32; i++){
		for ( j = 0; j < 32; j++){
			for ( k = 0; k < 32; k++){
				if(array[i][j][k] != 0) Print(array[i][j][k]);
				count++;
			}
		}
	}
   Print("End - checked "+count+" elements");
   return(0);
}		



I see it is all "0" to start.

Use similar code to "set"


 
I just assumed ArrayInitialize() wouldn't work on multi-dimensional arrays, silly me.
Reason: