what is the size of a class which contains no member
variables but has two objects??? is it 1 or 2??
Answer Posted / rao
2 (if two objects are empty class) otherwise Note : The
size of class = the size of Data members of the objects +
Size of data members of the Class.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How to access a variable of the structure?
What is the limitation of cin while taking input for character array?
What do nonglobal variables default to a) auto b) register c) static
What are punctuators in c++?
What is the use of seekg in c++?
What is abstract class in c++?
Does c++ have foreach?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
Write a Program for find and replace a character in a string.
Explain the isa and hasa class relationships.
What is the main purpose of c++?
What is the header file for setw?
What are the storage qualifiers?
What is the precedence when there is a global variable and a local variable in the program with the same name?
What is data hiding c++?