Computer Science, asked by TbiaSamishta, 1 year ago

let arr(1:7,-6:6,-8:4) be a 3d array.how many elements are there

Answers

Answered by aqibkincsem
1

"The formula for the number of elements in the 3d array = (ub3 - lb3 + 1)*(ub2 - lb2 + 1)*(ub1 - lb1 + 1)

Given:

Ub1 = 7

Ub2 = 6

Ub3 = 4


Lb1 = 1

Lb2 = -6

Lb3 = -8


No of elements = (7 – 1) * (6 + 6) * (4 + 8)

= 6 * 12 * 12

No of elements = 864

"

Similar questions