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

How many types of modularization are there in c++?

772


What is the use of :: operator in c++?

813


What is microsoft c++ redistributable?

778


what is Member Functions in Classes?

821


What is the maximum combined length of command line arguments including the space between adjacent arguments?

771


What are put and get pointers?

830


Is c++ harder than java?

788


What is the main use of c++?

793


Define copy constructor.

850


What is the sequence of destruction of local objects?

722


What are special characters c++?

738


Write a struct time where integer m, h, s are its members?

731


What is setbase c++?

817


Explain what you mean by a pointer.

851


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2291