#include struct a{ double p; //8 double pq; //8 char c; //1 char d; //1 //6 }; // = 24 struct b{ char c; //1 byte char p; //1 byte }; //= 2 bytes struct c{ int x; //4 char c; //1 //3 double f; //8 char s[3];//3 //5 // = 24 bytes }; int main(void){ printf("size of %ld\n",sizeof(struct a)); printf("size of %ld\n",sizeof(struct b)); printf("size of %ld\n",sizeof(struct c)); return 0; }