The value of SUBSCRIBE
is 0
. If you want to give SUBSCRIBE
a different value you can initialize the enumerator, e.g., with 1
:
enum action_type {
SUBSCRIBE = 1,
UNSUBSCRIBE,
MESSAGE
};
The other enumerators will get the respective next integer value.