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

what is overloading and overriding?

7 Answers  


What is variable example?

0 Answers  


i have to create a view in SQL as like in ORACLE DATA EXPRESS EDITION

2 Answers   CTS,


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  


Give two or more real cenario of virtual function and vertual object

0 Answers   TCS,


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

0 Answers  


Why do we use oop?

0 Answers  


Whats oop mean?

0 Answers  


i^=j; j^=i; i^=j; value of i,j

1 Answers  


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

0 Answers  


Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??

1 Answers  


Why do we use class?

0 Answers  


Categories