#include <stdio.h>
#include <stddef.h>
typedef struct {
char a;
int b;
short c;
} MyStruct;
void print_offsets() {
printf("Offset of a: %u", offsetof(MyStruct, a));
printf("\nOffset of b: %u", offsetof(MyStruct, b));
printf("\nOffset of c: %u", offsetof(MyStruct, c));
printf("\nSize: %u",sizeof(MyStruct));
}
int main() {
print_offsets();
return 0;
}