How to avoid structure padding in C?

Answer Posted / ravi

by using #pragma you can avoid structure padding. and that
to u can use it in linux or unix if i m not wrong.

Is This Answer Correct ?    55 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1959


Differentiate between full, complete & perfect binary trees.

764


Write a code to generate a series where the next element is the sum of last k terms.

840


What does sizeof return c?

704


How to set file pointer to beginning c?

773






What is build process in c?

733


Explain how do you determine whether to use a stream function or a low-level function?

726


I came across some code that puts a (void) cast before each call to printf. Why?

805


What is difference between scanf and gets?

709


What is spaghetti programming?

767


How does free() know explain how much memory to release?

706


What is a #include preprocessor?

706


What is wild pointer in c?

714


How can you find the day of the week given the date?

719


Why is #define used?

885