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

Write a Program to find the largest of 4 no using macros.

1143


What is a far pointer? where we use it?

1134


Can we distribute function templates and class templates in object libraries?

1133


How to declaring variables in c++?

1210


Why are arrays usually processed with for loop?

1287


Can we make any program in c++ without using any header file and what is the shortest program in c++.

1173


What are the defining traits of an object-oriented language?

1263


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3897


How do I get good at c++ programming?

1250


Explain abstraction.

1177


Can I create my own functions in c++?

1136


Why is main an int?

1036


What are the types of array in c++?

1229


What is rtti in c++?

1185


What is a constructor in c++ with example?

1185