Consider an array l[5,30] where each element l[i],5<=i<=30 is of 4 bytes and the address of L[5] is 1000. What is the address of L[12]
Answers
Answered by
23
Answer:
1028
Explanation:
array I [5,6,7,8,9...............30]
one element 4 bytes
l[5] = 1000
l[12] = 1000 + 7*4bytes = 1028
* Here 7 indicates the numbers after 5 and upto 12 in array i.e 6,7,8,9,10,11,12
Answered by
2
The Address of L[2] will be 988.
Explanation:
Given:-
address of the array's 6th block (L[5]) = 1000
Size of every element = 4 bytes
To find:-
address of L[2}
Since, the address of L[5] is 1000
Address of L[2] will be 1000 - 4 - 4 - 4
= 988
Similar questions