Question: Q 3 . For the structure declaration: struct { char * a; short b; double c ; chard; float e; char f; long Jeag g
Q For the structure declaration:
struct
char a;
short b;
double
chard;
float e;
char f;
long Jeag :
void ;
foo;
Suppose the structure was compiled on a bit Windows or a bit UNIX
machine, where each primitive data type of bytes must have an offset that
is a multiple of
B What is the total size of the structure?
C Rearrange the fields of the structure to minimize wasted space, and then
show the byte offsets and total size for the rearranged structure. marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
