enum enum_var{var0, var1, var2 = 22} outside_var;
enum week{Mon, Tue, Wed, Thur, Fri, Sat, Sun};
 
enum enum_var use_var;
enum week day;
day = Wed;
use_var = var0;

An enum variable can take only one value. The size of enum variable is a int.
Can only output a int, use if or case to print the value.

C++

Named enum

enum class CoordinateArea { FirstArea, SecondArea, ThirdArea, FourthArea};
 
CoordinateArea caOne = CoordinateArea::FirstArea;
CoordinateArea caSome= CoordinateArea::FourhtArea;