Question: Question 9: Struct and Union (8 pts) What is the size in bytes of the following data structures? a) Size of point3D struct point3D (2

Question 9: Struct and Union (8 pts) What is the size in bytes of the following data structures? a) Size of point3D struct point3D (2 pts) signed short x; unsigned int y; char *z; b) Size of val union val 2 pts) long long 11val; char str; short ival [2]; float fval; double dval c) Size of compound struct compound ( 2 pts) char mystring; long *y; union char *c short i; char f; ui d) Size of more compound(2 pts struct more_compound ( char name; int age; short pay; long height; union [ char short id short normal id; char my id; id; union char *text data; int *numeric data long *1_numeric_data; ) data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
