struct
This is because of the setting called "struct member alignment", which controls the boundaries on which struct members are stored. Each member is padded to fill at least the number of bytes indicated...
View Articlestruct
I think if you try this declaration: #pragma pack(push)#pragma pack(1) struct test { float a; unsigned char b; };#pragma pack(pop) then sizeof(test) will return 5 as you expected...
View Articlestruct
Hi all,What is the size of a struct type?when i create a struct with float and unsigned char, the size of the struct is 8 bytes instead of 5 bytes.anyone went thorugh this problem...struct test {float...
View Article
More Pages to Explore .....