Question: We are given the following definition in C . struct person { char name [ 1 4 ] ; float salary; int age; } arr

We are given the following definition in C.
struct person {
char name[14];
float salary;
int age;
} arr[10][5];
Assuming an integer occupies 2 bytes, a float occupies 4 bytes, a character occupies 1 byte, and arr starts at address 2000, what is the address of arr[2][3].salary if we use row-major addressing?
The correct answer is: 2274
 We are given the following definition in C. struct person {

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!