What is size of null class?
Answers were Sorted based on User's Feedback
Answer / alka
1 byte,whether class won't take any member variable, when
it will loaded into memory object will create which must
take minimum 1 byte of memory.... b'coz minimum size of
memory at least 1 byte
| Is This Answer Correct ? | 21 Yes | 3 No |
Answer / divyachinnamaru
Eg :
class A // empty class
{
};
int main()
{
cout<<"size of class is "<<sizeof(A)<<endl;
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chethu
can somebody explain what is null class? i cudnt find any
thing abt it in net... pls explain with example
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / purva
the size of null class is zero...
thats why it is called null class because after it nothing
can be accessed in a device..
therefore we have to chech overflow or may be underflow
conditions..
| Is This Answer Correct ? | 1 Yes | 19 No |
Tell me difference between constant pointer and pointer to a constant.
What is #include sstream?
What are the differences between malloc() and calloc()?
which of the following is not an secondary constant a) array b) real c) union
What are c++ redistributables?
What is a container class? What are the types of container classes in c++?
What is a namespace in c++?
Define the process of error-handling in case of constructor failure?
Which bitwise operator is used to check whether a particular bit is on or off?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
What are the differences between public, private, and protected access?
12 Answers IBM, Oracle, Wipro,
What is ostream in c++?