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 a object of following class?
class Foo
{
public:
void foo(){}
}

Answer Posted / jitendra varshney

The size of the object here will be 1. Because by default,
if no variable is declared in the class the size of object is 1.
this is due to fact that when two or more object of the
class is defined then they would have the different
addresses. But if size would have been zero then it might be
possible that two or more object can have the same address.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What character terminates all character array strings a) b) . c) END

1281


What are c++ redistributables?

1038


What is a unnitialised pointer?

1091


Can you please explain the difference between using macro and inline functions?

1048


What return value must conversion operators have in their declaration?

1096


Can you overload the operator+ for short integers?

1045


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

963


What is meant by a delegate?

1097


what is Member Functions in Classes?

1204


What is late binding c++?

988


What do you mean by funtion prototype?

1084


What is the insertion operator and what does it do?

1049


What is meant by entry controlled loop?

1125


Specify some guidelines that should be followed while overloading operators?

1213


What is called array?

1100