How to overcome structure padding?

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 .

Improve Answer Discuss the question "How to overcome structure padding?" Watch Question

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

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > How to overcome structure padding?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
How do you do structure padding?