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).



In a two-dimensional array, X (9, 7), with each element occupying 4 bytes of memory, with the addres..

Answer / Ravi Sharma

To find the address of X(8,5), we need to increase the starting address by 8*step_in_row + 5*step_in_column. If each element occupies 4 bytes, then the step in row and column can be calculated as follows: step_in_row = (total memory - size of first element) / (number of rows - 1), step_in_column = (total memory - size of first element) / (number of columns - 1). Given these steps, we can calculate the address of X(8,5).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More General Aptitude Interview Questions

what is present share of service industry in GDP ?

2 Answers   ONGC,


meaning of garnet

3 Answers   Kumaran Systems, L&T, TAFE,


List out the areas in which data structures are applied extensively?

2 Answers   Maveric,


A cube is painted, and cut, something like this.

3 Answers   3D PLM,


Find the hypotaneous of a right angle isosceles triangle whose area is 50.

1 Answers   COSL,


In a mixture, R is 2 parts and S is 1 part. In order to make S to 25% of the mixture, how much of R is to be added?

1 Answers   Accenture,


No. of animals is 11 more than the no. of birds. If the no. of birds were the no. of animals and no. of animals were the no. of birds( ie., interchanging no.s of animals and birds.), the total no. of legs get reduced by one fifth (1/5). How many no. of birds and animals were there?

1 Answers   Infosys,


find the smallest no in gp whose sum is 38 and product is 1728 a. 12 b. 20 c. 8 d. none of these

4 Answers   Infotech, Satyam,


2, 3, 6, 7--- using these numbers form the possible four digit numbers that are divisible by 4.

1 Answers   Accenture,


n and p are integers greater than 1 5n is the square of a number 75np is the cube of a number. The smallest value for n + p is?

1 Answers  


hai sir goodmorning,Please send me state bank of india officers exam model questions with answers papers for the past five years. my email id is ks_chitradevi@yahoo.com.pls sir help me sir.

0 Answers  


If A can complete a work in 6 hours, and B can complete it in 8 hours, then how much time would they take to complete the work together?

5 Answers   Wipro,


Categories