How to overcome structure padding?

Answer:

Answer

I think we can use #pragma pack(1)

By this the structure will he paked in 1 byte order so there will be no waste of memory .

First answer by Seshu gemini. Last edit by Seshu gemini. Contributor trust: 25 [recommend contributor recommended]. Question popularity: 31 [recommend question].