What is size of null class?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is purpose of abstract class?

590


Const char *p , char const *p What is the difference between the above two?

667


Specify some guidelines that should be followed while overloading operators?

625


What are 2 ways of exporting a function from a dll?

622


What is the best ide for c++?

581






What is the difference between new() and malloc()?

625


What is a map in c++?

591


What do you mean by const correctness?

637


How do I use turbo c++?

552


Explain dangling pointer.

684


Which bit wise operator is suitable for turning off a particular bit in a number?

649


How do you sort a sort function in c++ to sort in descending order?

566


What's the order in which the local objects are destructed?

844


What are move semantics?

681


What are the advantages of using pointers in a program?

689