Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How can I split up a string into whitespace-separated fields?

1005


What is getch() function?

1009


What is optimization in c?

949


What is a good data structure to use for storing lines of text?

1033


What is I ++ in c programming?

1059


Explain about block scope in c?

1031


Explain what is the benefit of using const for declaring constants?

967


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

979


what are enumerations in C

1107


What are data types in c language?

1012


Explain that why C is procedural?

1082


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

1089


Can a variable be both constant and volatile?

1044


Tell me when would you use a pointer to a function?

1011


What are the different types of linkage exist in c?

972