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 remove the trailing spaces from a string?
How do you convert strings to numbers in C?
How can I read data from data files with particular formats?
What is the size of array float a(10)?
Explain how can I right-justify a string?
What is strcmp in c?
What is this pointer in c plus plus?
What does *p++ do?
Why is c used in embedded systems?
Explain the difference between getch() and getche() in c?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Can you write the function prototype, definition and mention the other requirements.
Why flag is used in c?
What is the use of header?
is it possible to create your own header files?