according to the book i am referring.
y=2 should give warning.. but it is not giving any warning or anything. jst displaying the no. i put with y.Code:enum color{ red,blue,green,white}; int x; enum color y; x= blue; //valid. x contains y y=2 // compiler warning
and
what is the us of enummerated data types??