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
What is the difference between cin.read() and cin.getline()?
Explain bubble sorting.
What is DlgProc?
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?
Is there a sort function in c++?
What is nested class in c++?
What is c++ mutable?
Is c++ proprietary?
Is c++ still in demand?
What are the types of array in c++?
You want to link a c++ program to c functions. How would you do it?
What is the difference between the functions memmove() and memcpy()?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
How do I run a program in notepad ++?
Explain how an exception handler is defined and invoked in a Program.