Given an array int marks.[]={99,67,78,56,88,90,34,85} calculate the address of marks [4], if base addressv=1000
Answers
Answered by
5
Answer:1006
Explanation:
By adding 1000 to 6
Answered by
0
Given an array of integers and the stating address of this array, Find the address of data at fourth index.
Explanation:
- Let there be an array of 'N' integers having base address 'x' (that is the address of the first element of the array is 'x').
- Then the address 'A' of nth index out of indices of the size of each integer data type given to be 'b' bytes is given by,
- In general the size of integer data type is considered to be . If the size of integer is different the above formula can be used to determine the address.
- Now here we have,
- Hence the address of marks[4] is,
- ---->Answer
Similar questions