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 the purpose of extern storage specifier?

0 Answers  


Why is c++ is better than c?

0 Answers  


Write a function which takes a character array as input and reverses it in place.

2 Answers   Lehman Brothers, Vision Infotech,


advantages and disadvantages of using Borland C++ / version 5.

1 Answers  


Can we sort map in c++?

0 Answers  






How to create a pure virtual function?

1 Answers  


Difference between shift left and shift right?

1 Answers   Symphony,


What are static member functions?

0 Answers  


Why would you make a destructor virtual?

3 Answers   Lehman Brothers,


How many different levels of pointers are there?

0 Answers   Genpact,


Can comments be nested?

0 Answers  


i want to know how to copy arrary without using any method or function. I have tried the below using System; class e4 { static void Main(string[] args) { int a,b; int[ ] m= new int[5]; int[ ] n= new int[5]; for(a=0;a<=4;a++) { Console.WriteLine("enter any value"); m[a]=Convert.ToInt32(Console.ReadLine()); m[a]=n[a]; } for(b=0;b<=4;b++) { Console.WriteLine(n[b]); } } } but it will give wrong result can anyone solve this problem

1 Answers   Reliance,


Categories