Multiple choice

The array declaration - float num[3][4][5] - will have ____ elements.

  1. 12

  2. 17

  3. 35

  4. 60

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A three-dimensional array with dimensions [3][4][5] has 3 × 4 × 5 = 60 total elements. Each dimension represents the number of elements in that direction, and the total is the product of all dimensions. This is true regardless of the data type (float in this case).