Can someone please explain to me which part is what in this:
enum bb { cc } dd;
I understand that enum bb is the name of the enumeration and that { cc } is its enumerator, but I have no clue what dd is.
>Solution :
enum bb
{
cc
} dd;
bb– enum tag.cc– enumerator constant. As it is first and it does not have an expicity defined value it will be zero (0);dd– variable of typeenum bb
It can be written as:
enum bb
{
cc
};
enum bb dd;