How the members of enums are accessed outside of enum since all members scope is limited to their block.
#include<iostream>
enum{MON,TUE,WED};
using namespace std;
int main(){
cout << TUE;//How TUE is accessed since it has to be limited to enum's scope
return 0;
}
How the scope of enum members are outside of enums block since as in classes or structures the scope of it's member is limited to the block they defined.
Since we are not creating object of enums then when the memory is allocated to enum members?