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

We are given the following definition in C.
struct person {
char name[14];
int age;
float salary;
} arr[100];
Assuming an integer occupies 2 bytes, a float occupies 4 bytes, a character occupies 1 byte, and arr starts at address 2000, what is &arr[7].salary?
The correct answer is: 2156
 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!