Computer Science, asked by scbscbscb28, 10 hours ago

int a[2][3][4];
What would be the number of elements in array a?

Answers

Answered by cbsespeedrun
1

Answer:

24 Elements

Explanation:

Arrays are another word for multidimensional values, so basically in this case you have 3 dimensions each which can hold 2, 3, 4 values respectively

Hence the total number of arrays would be 2 X 3 X 4 = 24 elements

Answered by lavanya3602
0

Basically an array store collection of similar data types.

example: x[3];

x is a array variable holding size of 3 means 3 elements.

similarly we can say

a[2][3][4] means a[size][size][size]

Here a is array variable. Coming to size multiple all the sizes that we have mentioned

2*3*4 = 24.

Therefore, total 24 elements are stored in variable called "a".

Similar questions