int a[2][3][4];
What would be the number of elements in array a?
Answers
Answered by
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
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
Business Studies,
1 month ago
Social Sciences,
1 month ago
Chemistry,
1 month ago
Art,
2 months ago
Physics,
2 months ago
Hindi,
10 months ago
Science,
10 months ago