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 c++ in english?
What are multiple inheritances (virtual inheritance)?
What is the benefit of encapsulation?
Explain about templates of C++.
What is the difference between strcpy() and strncpy()?
Why is c++ still used?
What do you mean by volatile and mutable keywords used in c++?
Can comments be longer than one line?
What are friend classes? What are advantages of using friend classes?
What is the best free c++ compiler for windows?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
How should runtime errors be handled in c++?
What are the data types in c++?
What is recursion?
Describe linkages and types of linkages?