What is size of null class?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is helper in c++?

580


What is binary object model?

608


What are the two types of polymorphism?

601


What is the use of 'this' pointer?

778


an operation between an integer and real always yeilds a) integer result b) real result c) float result

716






What is class definition in c++ ?

639


What is implicit conversion/coercion in c++?

659


How does c++ sort work?

571


Difference between struct and class in terms of access modifier.

703


Explain the use of virtual destructor?

632


What is #include c++?

575


What is a sequence in c++?

590


What is jump statement in C++?

621


Which c++ compiler is best?

597


Why do we use using namespace std in c++?

607