Let A(1:8, -5:5, -10:5) be a three dimensional array. How many elements are there in the array A?
- A. 1200
- B. 1408
- C. 33
- D. 1050
Answer: B. 1408
Explanation: Size = (Upper1 - Lower1 + 1) * (Upper2 - Lower2 + 1) * (Upper3 - Lower3 + 1) = (8-1+1) * (5-(-5)+1) * (5-(-10)+1) = 8 * 11 * 16 = 1408.