Question: Consider the following struct: struct A{ char a; double b; char c; short *d; char e; short f; char g; int h: }; 1. How

Consider the following struct: struct A{ char a; double b; char c; short *d; char e; short f; char g; int h: }; 1. How many bytes will a value of type A occupy? 2. How many bytes will A[10] occupy? 3. How many bytes will A*[10] occupy? 4. Provide an alternate declaration of A that reduces the amount of padding needed to satisfy the alignment rules
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
