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

How do you know that your class needs a virtual destructor?

5 Answers   Lucent,


Differences between private, protected and public and give examples.

0 Answers  


What is a string example?

0 Answers  


Write a program that will count the number of digits in an input integer up to value MAX_VALUE (2147483647). Thus, for an input of 5837 the output should be 4 digits Make sure that your program works for the numbers 0, 1, and 10. For the number 0, the output should be 1 digit

2 Answers  


Describe new operator?

0 Answers  


what is the basic concept of c++(object oriented programing)

4 Answers   Wipro,


Explain one method to process an entire string as one unit?

0 Answers  


Do we have to use initialization list in spite of the assignment in constructors?

0 Answers  


Is there a sort function in c++?

0 Answers  


What is the difference between Char a[ ]=”string” and char *a=”String”

11 Answers   Adobe,


What is near, far and huge pointers? How many bytes are occupied by them?

0 Answers  


Can we run c program in turbo c++?

0 Answers  


Categories