How to avoid structure padding in C?
Answer Posted / akshay singh
i think for avoid structure padding you use only the #pragma pack(1) its sufficient for structure padding
i am not sure about windows application this concept i used in linux or unix
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can I split up a string into whitespace-separated fields?
What is getch() function?
What is optimization in c?
What is a good data structure to use for storing lines of text?
What is I ++ in c programming?
Explain about block scope in c?
Explain what is the benefit of using const for declaring constants?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
what are enumerations in C
What are data types in c language?
Explain that why C is procedural?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Can a variable be both constant and volatile?
Tell me when would you use a pointer to a function?
What are the different types of linkage exist in c?