class test
{
public:
enum t_number
{
ZERO,
ONE
};
enum t_test
{
TWO,
THREE
};
};
Why the size of the above class is 1 and not 8?
And when I do this in main()
cout << "value of enum"<< test::ONE
I get output as 1.
Does that mean memory is allocated for the enum?