struct foo {
char a;
bool b;
int c;
double d;
short e;
float f;
double g;
char *cptr;
float *fptr;
int x;
};
Note that for C, the compiler must keep the elements of the struct in the same
order as given in the struct definition. For a 32-bit machine, what is the size of the
foo struct? What is the minimum size required for this struct, assuming you may
arrange the order of the structmembers as youwish?What about for a 64-bitmachine?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here