How to avoid structure padding in C?

Answer Posted / vishnu948923

by using #pragma pack

Is This Answer Correct ?    31 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

571


How to set file pointer to beginning c?

651


Is there any demerits of using pointer?

617


Is r written in c?

716


p*=(++q)++*--p when p=q=1 while(q<=6)

1258






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

662


Which is more efficient, a switch statement or an if else chain?

567


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2252


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2916


Explain how can type-insensitive macros be created?

564


How many levels deep can include files be nested?

638


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1421


For what purpose null pointer used?

596


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

677


difference between native and cross compilers

1659