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
The file stdio.h, what does it contain?
Is Exception handling possible in c language?
What is a structure and why it is used?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
Define C in your own Language.
What does the c preprocessor do?
What is main () in c language?
Is there a way to compare two structure variables?
Explain how can type-insensitive macros be created?
Explain how do you sort filenames in a directory?
What are high level languages like C and FORTRAN also known as?
What are the basic data types associated with c?
How old is c programming language?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What is "Duff's Device"?