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...

What is size of empty class object

Answer Posted / manish shikarbar

answer is :1

Example:

class Test
{
};

Test Obj;

int size = sizeof(Obj); // answer is 1

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ++ count and count ++?

1147


How java is different from c and c++?

1204


How will you call C functions from C ++ and vice-versa?

1147


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

1068


Why c++ is called oop?

1128


Why c++ does not have finally?

1085


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

1103


What is the difference between a definition and a declaration?

1073


Write a Program for find and replace a character in a string.

1082


What is difference between n and endl in c++?

1096


What is an accessor in c++?

1078


Define the operators that can be used with a pointer.

1062


What is purpose of new operator?

1071


Please explain class & object in c++?

1095


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1110