TCS
Company
Logical Reasoning
Cryptography
In a two-dimensional array, X(9,7), with each element occupying 4 bytes of memory, with the address of the first element X(1,1) is 3000, find the address of X(8,5).
Read Solution (Total 5)
-
- Base + w[n(i-1)+(j-1)]
base=3000, w=4, m=9, n=7, i=8, j=5
therefore 3000+4(7(7)+4)
hence answer is 3212 - 12 years agoHelpfull: Yes(10) No(0)
- The address of X(8,5)=3212
- 12 years agoHelpfull: Yes(1) No(3)
- address=3212
- 12 years agoHelpfull: Yes(1) No(1)
- 3212 is ans
formula is base+w[n(i-1)+j-1]
3000+4*[49+4]=3212 - 12 years agoHelpfull: Yes(1) No(1)
- can anyone explain in detail..??
- 10 years agoHelpfull: Yes(0) No(0)
TCS Other Question