So, is that the fault of sizeof() or the structure really holds 56 bytes?
I am gonna use this structure to gether the header of a bitmap file. My question is, am I gonna get 54 bytes or 56 bytes by a file stream function such as .read() ?
What sizeof tells you is the truth.
Look into your compiler's documentation for a way to pack structures.
Reputation Points: 2780
Solved Threads: 312
long time no c
Offline 4,790 posts
since Apr 2004