#include <stdio.h>
typedef struct {
char a;
int b;
short c;
} MyStruct;
void print_offsets() {
MyStruct Str;
printf("Offset of a: %d\n",0);
printf("Offset of b: %d\n",sizeof(Str.b));
printf("Offset of c: %d\n",2*sizeof(Str.b));
printf("Size: %d",2*(sizeof(Str.b)+sizeof(Str.c)));
}
int main() {
print_offsets();
return 0;
}