Calculate address of 47th element of array where base address is 108, where words per memory cell is 4 and array is Declared as A[1000].
Answers
Answered by
1
Answer:
Explanation:
Array of an element of an array say “A[ I ]” is calculated using the following formula:
Address of A [ I ] = B + W * ( I – LB )
Where,
B = Base address
W = Storage Size of one element stored in the array (in byte)
I = Subscript of element whose address is to be found
LB = Lower limit / Lower Bound of subscript, if not specified assume 0 (zero)
Similar questions