How to avoid structure padding in C?

Answer Posted / t swain

by using #pragma you can avoid structure padding.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a struct c#?

601


What is LINKED LIST? How can you access the last element in a linked list?

634


Was 2000 a leap year?

633


What is a floating point in c?

606


What are variables and it what way is it different from constants?

787






What is the use of #define preprocessor in c?

619


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1431


What is the use of a ‘’ character?

587


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3342


When should the const modifier be used?

660


What is a list in c?

622


Write a program which returns the first non repetitive character in the string?

605


What is the difference between int main and void main in c?

594


What does == mean in texting?

669


How can I find out the size of a file, prior to reading it in?

623