Question: struct foo { char a; short b; double d; int c; short e; float f; double g; char *cptr; float *fptr; intx;} For a 32-bit

struct foo

{

char a;

short b;

double d;

int c;

short e;

float f;

double g;

char *cptr;

float *fptr;

intx;}

For a 32-bit machine, what is the size of the foo struct? What is the minimum requirement of this struct if you can arrange the order of the struct ? What about 64 bit machine?

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!