retagged by
443 views
0 votes
0 votes
A one dimensional array A has indices 1...75.Each element is a string and takes three memory words .The array is stored at location 1120 decimal .The starting address of A[49] is

a)1267

b)1134

c)1264

d)1169
retagged by

1 Answer

2 votes
2 votes
This is an easy question...:)

Here one assumption to be made.Since word size is not given , we will take default assumption i.e. word size = 1 byte(byte addressable)

Given a[1] address = 1120

So address of a[49] = 1120 + (49 - 1)*3

                             = 1120 + 144

                             = 1264

So C) should be the correct option.
Answer:

Related questions

16 votes
16 votes
3 answers
2
shikharV asked Dec 4, 2015
15,630 views
A is an array $[2.....6, 2.....8, 2.......10]$ of elements. The starting location is $500$. The location of an element $A(5, 5, 5)$ using column major order is __________...
1 votes
1 votes
0 answers
4
piyush512 asked Apr 20
103 views
Consider an integer upper triangular 2D array arr[–8 to +7][–8 to +7] having base address 1000. If the size of the integer is 4 bytes, the address of the element pres...