Possible Duplicate:
struct sizeof result not expected
I have this C++ struct:
struct bmp_header {
  //bitmap file header (14 bytes)
  char Sign1,Sign2; //2
  unsigned int File_Size; //4
  unsigned int Reserved_Dword; //4
  unsigned int Data_Offset; //4
  //bitmap info header (16 bytes)
  unsigned int Dib_Info_Size; //4
  unsigned int Image_Width; //4
  unsigned int Image_Height; //4
  unsigned short Planes; //2
  unsigned short Bits; //2  
};
It is supposed to be 30 bytes, but 'sizeof(bmp_header)' gives me value 32. What's wrong?
 
     
     
     
    