How to avoid structure padding in C?
Answer Posted / akshay singh
i think for avoid structure padding you use only the #pragma pack(1) its sufficient for structure padding
i am not sure about windows application this concept i used in linux or unix
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is clrscr in c?
How can I write functions that take a variable number of arguments?
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
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is sorting in c plus plus?
How do I use void main?
What is a class c rental property?
Explain about the functions strcat() and strcmp()?
What does #pragma once mean?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Can the “if” function be used in comparing strings?
What is hungarian notation? Is it worthwhile?
What is unary operator?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
can we implement multi-threads in c.