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
What is the advantage of a random access file?
What is structure padding and packing in c?
What are the advantages of union?
What do you mean by recursion in c?
Explain the difference between #include "..." And #include <...> In c?
How can I find the modification date of a file?
How does free() know explain how much memory to release?
Is null always equal to 0(zero)?
Why shouldn’t I start variable names with underscores?
How can I remove the trailing spaces from a string?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Where define directive used?
to find the closest pair
which is an algorithm for sorting in a growing Lexicographic order