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 / sirama

Size of the Object 1 Byte (ie) 8 bits. Because that is
minimum possible size required to allocate something on
memory.

Say If a Create the Object like Foo obj;
Something needs to loaded on Stack. But, actually it does
not have any internal data memebers. Hence, the minimum
possible is 1 Byte.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how functions are classified in C++ ?

1180


What is a base class?

1052


What is #include cmath?

1040


How do I run c++?

999


What is an associative container in c++?

1009


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3875


What is the difference between the compiler and the preprocessor?

1054


Differentiate between the manipulator and setf( ) function?

1101


What is class and structure in c++?

1086


What is the use of turbo c++?

1014


What is main function in c++ with example?

1142


What is the main function c++?

1070


What is c++ hiding?

1116


What is an operator in c++?

997


What is a map in c++?

1102