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 best c c++ compiler for windows?

566


What is difference between c++ 11 and c++ 14?

578


What is the function to call to turn an ascii string into a long?

603


Can a program run without main?

631


What is a catch statement?

587






How do you invoke a base member function from a derived class in which you’ve overridden that function?

584


write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num

2198


What is the full form of dos?

569


Can a class be static in c++?

573


What is math h in c++?

607


List down the guideline that should be followed while using friend function.

649


What is the difference between mutex and binary semaphore?

613


Is main a class in c++?

564


Describe public access specifiers?

587


What is an incomplete type in c++?

770