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 change their mode to binary?
What is structure padding and packing in c?
What are the parts of c program?
what is the function of pragma directive in c?
What is volatile c?
How will you delete a node in DLL?
Sir i need notes for structure,functions,pointers in c language can you help me please
Is c is a middle level language?
What is the equivalent code of the following statement in WHILE LOOP format?
Where we use clrscr in c?
What is the difference between array and pointer in c?
What are the different types of objects used in c?
What is the use of a semicolon (;) at the end of every program statement?
Why we use void main in c?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol