The following declaration allocates space for how many double variables?
What will be an ideal response?
```
double [][][] temperatures = new double [10][20[]30];
```
This is the declaration of a 3-dimensional array. It can be viewed as a 10-element array (the first subscript)
where each array element is a 2-dimensional array. The 2-dimensional arrays have 20 rows and 30 columns, so they have 20 x 30
= 600 elements. There are 10 2-dimensional arrays, so the total number of doubles allocated by this declaration is 10 x 600 =
6000 doubles.
Computer Science & Information Technology