I have defined a struct like given but sizeof function gives one more than the actual size that is 13 why??
Can You plz help me.
Code:typedef struct {
char type[3];
char code[3];
unsigned short int width;
unsigned short int height;
char flags;
char bgColorI;
char pARatio;
} HEADER; // size is 13
int main(int argc,char **argv)
{
printf("%u", sizeof(HEADER)); // it gives 14 why?? thats is my question
}