3 votes 3 votes Given an array $A[-1:6,-2:10] $. The base address of array is $1000$. If every elements take $4$ Bytes for storage . Then compute the address of element $A[5,7]$. Assume row major storage. $1245$ $1348$ $2434$ $1384$ Programming in C array + – bhanu kumar 1 asked Feb 27, 2018 • retagged Jul 3, 2019 by Cristine bhanu kumar 1 1.5k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
3 votes 3 votes Assuming row wise storage Address of A[5,7]. = 1000+( 6* 13 + 9) *4 = 1000+(348) = 1348 rahul sharma 5 answered Feb 27, 2018 rahul sharma 5 comment Share Follow See 1 comment See all 1 1 comment reply Suraj123 commented Apr 9, 2018 reply Follow Share what does it mean A[-1:6,-2:10]. and how you come up with that formula (6*13+9)*4. and what is 13 there. 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes 1348 is answer. abhishekmehta4u answered Apr 9, 2018 abhishekmehta4u comment Share Follow See all 2 Comments See all 2 2 Comments reply bhanu kumar 1 commented Apr 9, 2018 reply Follow Share Every thing done good.....but wrong in calculation ....(78+9)*4=348. 1 votes 1 votes koushriek commented Jan 23, 2020 reply Follow Share (78+9)*4 = 348 and not 384 0 votes 0 votes Please log in or register to add a comment.