why the size of an empty class is 1

Answer Posted / kamna

it is becuse each oject must have a different address.

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between strcpy() and strncpy()?

734


What is the best free c++ compiler for windows?

698


What does it mean to declare a destructor as static?

714


What is dev c++ used for?

689


Is c++ the hardest language?

648






What are the basics of local (auto) objects?

720


what is a reference variable in C++?

749


What is the difference between the parameter to a template and the parameter to a function?

750


What is ios class in c++?

661


Is c++ double?

653


What is the difference between *p++ and (*p)++ ?

860


What are the various oops concepts in c++?

693


What are stacks? Give an example where they are useful.

672


When are exception objects created?

687


What is increment operator in c++?

646