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 pragmas and what are they good for?
What are the 5 organizational structures?
What is null in c?
What is extern keyword in c?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
Differentiate between ordinary variable and pointer in c.
Write the syntax and purpose of a switch statement in C.
Do you have any idea about the use of "auto" keyword?
What are extern variables in c?
Why is #define used?
When a c file is executed there are many files that are automatically opened what are they files?
Dont ansi function prototypes render lint obsolete?
Under what circumstances does a name clash occur?
Explain how are 16- and 32-bit numbers stored?
What is the description for syntax errors?