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

You might also like to view...

Which of the following is NOT a cloud service provider?

A) Salesforce B) Amazon C) Google D) Intel

Computer Science & Information Technology

Some companies now allow workers to ________ from home

Fill in the blank(s) with correct word

Computer Science & Information Technology