#include<stdio.h>
int main()
{
struct
{
char all[13];
int foo;
} record;
printf("%d\n",sizeof(record.all));
printf("%d\n",sizeof(record.foo));
printf("%d\n",sizeof(record));
return 0;
}
I have tried the above code and the output is:
13
4
20
Would you please explain this to me?