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 size of a class can be calulated?

Answer Posted / spoorthi.hebbar

THE SIZE OF THE ATTRIBUTES OF CLASS IS THE ANSWER..

EG.
CLASS DEMO
{
INT A; //IT IS 4 BYTES LONG
INT B; //IT IS 4 BYTES LONG
}
THE TOTAL SIZE IS 8 BYTES.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1443


Differentiate between a copy constructor and an overloaded assignment operator.

1063


Define Virtual function in C++.

1078


Does dev c++ support c++ 11?

1002


Is there any function that can skip certain number of characters present in the input stream?

1052


What is #include ctype h in c++?

1149


Can static member variables be private?

1161


How do I get good at c++ programming?

1147


Why do we use string in c++?

927


which operator is used for performing an exponential operation a) > b) ^ c) none

1039


What is a unnitialised pointer?

1058


Explain what are mutator methods in c++?

1105


Why do we use constructor?

1039


Will rust take over c++?

1046


Why do we use double in c++?

1043