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
What are global variables and how do you declare them?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Explain low-order bytes.
What oops means?
What does main () mean in c?
Is sizeof a keyword in c?
List the difference between a While & Do While loops?
ATM machine and railway reservation class/object diagram
What is an lvalue in c?
Why is void main used?
Is null equal to 0 in sql?
Why c is called a mid level programming language?
What is array within structure?
What are data structures in c and how to use them?
Explain how do you search data in a data file using random access method?