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 the size of an empty class

Answers were Sorted based on User's Feedback



what is the size of an empty class..

Answer / hardit singh

size of an empty class is 1 byte

Is This Answer Correct ?    32 Yes 3 No

what is the size of an empty class..

Answer / muniskehar

size of an empty class is 1Byte

Is This Answer Correct ?    7 Yes 1 No

what is the size of an empty class..

Answer / manu

1 byte it 100% correct ans dont get confuse

Is This Answer Correct ?    5 Yes 2 No

what is the size of an empty class..

Answer / som shekhar

1 byte.

Reason being when compiler sees an empty class then then it
assigns a 1 byte memory, since the compiler sees the
declaration of the class so he needs to assign some space in
the memory, and hence assign 1 byte memory to hold the
address of the class.

Is This Answer Correct ?    4 Yes 1 No

what is the size of an empty class..

Answer / asdf

According to the standard C++03, all classes "shall have
nonzero size."

1 byte is the most common implementation but it is left up
to the vendor.

Is This Answer Correct ?    2 Yes 0 No

what is the size of an empty class..

Answer / padma

Size of an empty class is 0.

Is This Answer Correct ?    0 Yes 0 No

what is the size of an empty class..

Answer / ankit sharma

size of empty class is 1 byte.


if object does not point to any resource.
it shows object is null but object also get some space in
memory by default either it is empty or not.

Is This Answer Correct ?    0 Yes 0 No

what is the size of an empty class..

Answer / ansari razi

1 Byte,
when compiling the program compiler allocates 1 byte memory.

Is This Answer Correct ?    0 Yes 0 No

what is the size of an empty class..

Answer / kaush

1 byte for empty class before assigning the value

Is This Answer Correct ?    0 Yes 1 No

what is the size of an empty class..

Answer / p.madhupriya

1 byte or 0

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More OOPS Interview Questions

Input: enter the value:1234 output: 1 2 3 4 write a program to get above output.....

4 Answers   Bally Technologies, IBM, SoftSol,


What is a unary operator?

5 Answers  


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

0 Answers   CAT,


//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


Is data hiding and abstraction same?

0 Answers  


what is oops

4 Answers   DELL,


What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined

7 Answers  


define oops with class and object

5 Answers   HCL, Tech Mahindra,


what is the function of 'this' operator ?

7 Answers   Wipro,


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

1 Answers  


What is overloading in oops?

0 Answers  


can we make a class static without using static keyword?

5 Answers   Aspire,


Categories