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 null class?

Answer Posted / divyachinnamaru

Eg :
class A // empty class
{

};
int main()
{
cout<<"size of class is "<<sizeof(A)<<endl;
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between class and structure.

1178


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1230


What does flush do c++?

1067


the maximum length of a character constant can be a) 2 b) 1 c) 8

1098


Why c++ is not a pure oop language?

1051


What is token c++?

1028


What is the standard template library (stl)?

1788


what you know about c++?

1160


Out of fgets() and gets() which function is safe to use?

1134


Why do we use templates?

1059


what is oops and list its features in c++?

1059


Write a function that swaps the values of two integers, using int* as the argument type?

1031


Explain the uses oof nested class?

1142


What is oops in c++?

1067


What are virtual functions in c++?

1186