Question: Consider the following C declaration, compiled on a 32-bit Pentium machine (with array elements aligned at addresses multiple of 4 bytes). struct { int n;

Consider the following C declaration, compiled on a 32-bit Pentium machine (with array elements aligned at addresses multiple of 4 bytes).

struct

{

int n;

char c;

} A[10][10];

If the address of A[0][0] is 1000 (decimal), what is the address of A[3][7]? Explain how this is computed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!