There is no secret and that is what that code shows. The enumeration is created. Declares a variable of the enumeration type, assigns one of the possible values to the variables, and can already use an enumeration constant, even if it may be any value, there is no use check, and then makes the increment. The variable will be a normal integer.
#include <stdio.h>
typedef enum {um = 1, dois = 2, tres = 3} Numeros;
int main(void) {
Numeros numero = um;
numero++;
printf("%d", numero);
}
Behold working in the ideone. And in the repl it.. Also put on the Github for future reference.
This is the question you asked and it is answered. But the description also indicates that you do not want it. The first thing you need to define is whether you need to string even, or just needs a set of variables that hold some values and that those values should be incremented, then just use a array of int
very simple, which is a much more basic resource of C. and as already programmed in C before should know how to do.
There is a question that shows the practical use of this.
In that case the name is required, vlw.
– Luis Souza