#include <stdio.h>
#include <stdio.h>
struct BAC {
int* n2;
char c1;
int n1;
char* c2;
};
int main() {
printf("Size of BAC: %zu\n", sizeof(struct BAC));
return 0;
}
/*
Size of BAC = Size of n2 + Size of c1 + Padding + Size of n1 + Size of c2
= 8 + 1 + 3 + 4 + 8
= 24 bytes
*/
To embed this program on your website, copy the following code and paste it into your website's HTML: