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 much is size of struct having 1 char & 1 integer?

Answer Posted / vadivelt

The size of the stucture depends on the following factors.

1.Depends on the size of the datatype, allocated by compiler
2.Depends on the allignment of the variables in the
structure.

If variables of different datatypes are misalligned, then
badding bytes will be added by the compiler to falitate to
speed up the memory access by the processor.So that the size
of the structure will increase.

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To what does “event-driven” refer?

1023


What is the difference between c++ and turbo c++?

1136


What is purpose of abstract class?

1038


What is the difference between a type-specific template friend class and a general template friend class?

950


What is c++ code?

1086


What is a set in c++?

931


Which programming language's unsatisfactory performance led to the discovery of c++?

1288


Do you know about C++ 11 standard?

1050


How do we implement inheritance in c++?

1096


What is low level language in simple words?

1002


Difference between inline functions and macros?

993


What is increment operator in c++?

986


What is difference between class and structure in c++?

1155


What is the use of main function in c++?

944


Mention the ways in which parameterized can be invoked.

915