I have two classes as follows
class A
{
};
class B
{
int a[];
};
int main()
{
cout << sizeof(A) <<endl; //outputs 1
cout << sizeof(B) <<endl; //outputs 0
return 0;
}
I am familiar that size of empty class is 1,but why is the size of class B coming to be ZERO??