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
When does the c++ compiler create temporary variables?
What is the difference between ++ count and count ++?
Are there any special rules about inlining?
what is data encapsulation in C++?
How can we check whether the contents of two structure variables are same or not?
What is c++ iterator?
What is a friend function in c++?
What do you understand by a pure virtual member function?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is java and c++?
How do I download c++?
What are friend functions in C++?
How do you save a c++ program?
what are the iterator and generic algorithms.
When must you use a pointer rather than a reference?