Here is my code :
#include <iostream.h>
int main (int argc, char * argv[])
{
struct
{ short Signture;
long FileSize;
short Reserved1;
short Reserved2;
long ImgDataStartOff;
long InfoHeaderSize;
long Width;
long Height;
short Planes;
short NumbOfPix;
long Compression;
long SizeOfImgData;
long HRes;
long VRes;
long NumOfCol;
long NumOfImpCol;
} Header;
cout<<"Size of Header = "<<sizeof(Header)<<endl;
system("PAUSE>nul");
return EXIT_SUCCESS;}
I'm using Dev-CPP compiler.
Output is 56, but it must be 54.
Any explanation and solutions?