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 Member Functions in Classes?
Write a function that swaps the values of two integers, using int* as the argument type?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
Which bit wise operator is suitable for putting on a particular bit in a number?
Why struct is used in c++?
Why use of template is better than a base class?
What is the meaning of c++?
What is public, protected, private in c++?
What are register variables?
How to get the current position of the file pointer?
Discussion on error handling of C++ .
What is difference between class and function?
what are the types of Member Functions?
Explain pass by value and pass by reference.
What is the use of 'this' pointer?