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

How can I invoke another program or command and trap its output?

603


What does node * mean?

700


When would you use a pointer to a function?

577


What is the use of define in c?

584


Explain pointer. What are function pointers in C?

616






main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

623


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

772


How can you return multiple values from a function?

620


What is union and structure?

562


What is a pointer value and address in c?

619


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2222


Describe the modifier in c?

590


what is the format specifier for printing a pointer value?

603


What is wrong with this code?

683


What is the difference between constant pointer and constant variable?

738