httpsiimgurcommm6ZtM1png Give the minimum size of each of th
https://i.imgur.com/mm6ZtM1.png
Give the minimum size of each of the following C types, assuming that char values occupy one byte, short values occupy two bytes, int and float values occupy four bytes, double and long values occupy eight bytes, and pointers occupy four bytes. struct s1 {short a; char b[8]; float *c; double *d;}; union u1 {char e; int f[10]; long g;}; struct s2{struct si s; union u1 u; long *i[4];};Solution
Answer:
a) struct s1{
short a;
char b[8];
float*c;
double*d;
};
size:3.14 KB
date: 2016-11-14 07:37:30.
b) union u1{
char e;
int f[10];
long g;
};
size: 3.14 KBmemory
date: 2016-11-14 07:41:15
c)
a) struct s1{
short a;
char b[8];
float*c;
double*d;
};
union u1{
char e;
int f[10];
long g;
};
struct s2{
struct s1 s;
union u1 u;
long*i[4];
};
size: 3.14 KBmemory
date: 2016-11-14 07:49:15

