what is the size of a class which contains no member
variables but has two objects??? is it 1 or 2??

Answer Posted / asghar ali chandio

every object will occypy one byte of memory. If objects are
two then Size will be two bytes.

Is This Answer Correct ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between cin.read() and cin.getline()?

553


Explain bubble sorting.

622


What is DlgProc?

596


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

634


Is there a sort function in c++?

543






What is nested class in c++?

514


What is c++ mutable?

700


Is c++ proprietary?

575


Is c++ still in demand?

632


What are the types of array in c++?

616


You want to link a c++ program to c functions. How would you do it?

535


What is the difference between the functions memmove() and memcpy()?

626


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

628


How do I run a program in notepad ++?

594


Explain how an exception handler is defined and invoked in a Program.

582