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

A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

635


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1510


What is union and structure?

567


Why double pointer is used in c?

563


Hi can anyone tell what is a start up code?

1607






Which header file is used for clrscr?

571


What does typedef struct mean?

651


i have a written test for microland please give me test pattern

2175


Write a program to check prime number in c programming?

590


Explain what is the most efficient way to store flag values?

692


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

643


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

650


Is c is a low level language?

556


What is your stream meaning?

597


What is a const pointer?

626