i hv got a doubt with this program.
struct emp {
int eno;
char ename[10];
};
main(){
printf("%d\n",sizeof(int));
printf("%d\n",sizeof(char[10]));
printf("%d\n",sizeof(struct emp));
}
I work on ANSI C in SuSE-Linux and i get the following output:
4
10
16
how come that the size of the structure is occupying two bytes extra.
pl advise.
Prasad