12 12 votes Let $A(1:8, -5:5, -10:5)$ be a three dimensional array. How many elements are there in the array $A$? $1200$ $1408$ $33$ $1050$ Data Structures isro2013 array easy + – Misbah Ghaya 11.4k views answer comment Share Follow Print See 1 comment 1 1 comment reply Srken commented Sep 5, 2025 reply Follow flag why are we multiplying at the end?? 0 0 replyShare Please log in or register to add a comment.
Best answer 32 32 votes I am just attempting it not sure Here i think they have specified the size So 1:8 mean 8 elements ( both are inclusive ) (-5 : 5 ) mean 11 elements (-10 : 5 ) mean 16 elements So no of elements will be ( just like Multidimensional array will be ) 8*11*16=1408 so option b Dexter answered Apr 25, 2016 • selected Apr 26, 2016 by srestha Dexter comment Share Follow See all 2 Comments 2 2 Comments reply smartmeet commented Jan 18, 2017 reply Follow flag Whats (minus) indicates? 0 0 replyShare Raju Kalagoni commented Nov 29, 2019 reply Follow flag @smartmeet, starting index of array is some negative number, as per C standards it starts at 0 but neednot be the same case in all other programming languages. Here -5:5 means, index range here is : { -5,-4,-3,-2,-1,0,1,2,3,4,5 } and it's equal to 11 elements. 1 1 replyShare Please log in or register to add a comment.
5 5 votes ul = upper limit ll=lower limit (ul3-ll3+1) x (ul2-ll2+1) x(ul1-ll1+1) =(8-1+1) x( 5- (-5)+1) x (5 +10+1) =1408 Swati Tandel answered Jun 24, 2016 Swati Tandel comment Share Follow 0 reply Please log in or register to add a comment.
2 2 votes Length of First dimension =8-1+1=8 Length of Second dimensions =5-(-5)+1=11 Length of Third dimensions =5-(-10)+1=16 Number of elements= 8×11×16= 1408 Raj_Maurya answered Oct 28, 2024 Raj_Maurya comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes 8 2d arrays one array has 11 rows and 16 columns so one 2d array has 16*11 elements so all are 8*16*11=1408 jacknroll answered Dec 22, 2025 jacknroll comment Share Follow 0 reply Please log in or register to add a comment.