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

What is lambda expression c++?

1044


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

2332


What is setiosflags c++?

952


Is java a c++?

1032


Explain "const" reference arguments in function?

1038


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3830


Is c++ double?

1021


Search for: what is pair in c++?

1106


What is a c++ map?

1374


When do we use copy constructors?

1070


What is an iterator?

1180


What is this pointer in c++?

1376


What are the rules about using an underscore in a c++ identifier?

1159


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6396


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

1169