Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

ISRO | ISRO CS 2013 | Question 1

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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)

Explanation: Number of elements in first dimension of array = upper limit – lower limit + 1 = 8 – 1 + 1 =8
Number of elements in second dimension of array = 5 – (-5) + 1 = 11
Number of elements in third dimension of array = 15 – (-10) + 1 = 16
total number of elements = 8 * 11 * 16 = 1408
So, Answer (B) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 11 May, 2018
Like Article
Save Article
Similar Reads