Consider this struct type:
typedef struct { char c1; int n; char c2; double x; } s1_t;
-
What is the total size of this struct in bytes?
-
What are the offsets (in bytes) from the beginning of the struct for each member variable?
-
What is the alignment requirement for each member? for the struct?
It might be different in Windows than in Linux.