retagged by
441 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,588 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 __________...
0 votes
0 votes
1 answer
4
Debargha Mitra Roy asked 6 hours ago
16 views
#include <stdio.h int main() { int a[3] = {1, 3, 5, 7, 9, 11}; int *ptr = a[0]; ptr += sizeof(int); printf("%d", *ptr); return 0; }(Assume size of int to be $2$ bytes.)T...