What is size of null class?

Answers were Sorted based on User's Feedback



What is size of null class?..

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

What is size of null class?..

Answer / vinay bondade

1 byte

Is This Answer Correct ?    15 Yes 3 No

What is size of null class?..

Answer / sourisengupta

One byte.

Is This Answer Correct ?    11 Yes 0 No

What is size of null class?..

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

What is size of null class?..

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

What is size of null class?..

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

Post New Answer

More C++ General Interview Questions

What is difference between initialization and assignment?

12 Answers   HCL, HP, Infosys,


What are static variables?

0 Answers  


How can we check whether the contents of two structure variables are same or not?

0 Answers  


What does the nocreate and noreplace flag ensure when they are used for opening a file?

0 Answers  


Explain the difference between struct and class in terms of access modifier.

0 Answers  






write a program in c++ to implement stack using functions in header file stack.h

3 Answers   Google, Subex,


Show the application of a dynamic array with the help of an example.

0 Answers  


What does catch(…) mean?

0 Answers  


Write a C++ Program to Generate Random Numbers between 0 and 100

1 Answers  


Is c++ still being used?

0 Answers  


When is the copy constructor called?

0 Answers  


What is endl c++?

0 Answers  


Categories