Example: enum

In the following example, the day enum, today, is set to Sat. Note that because Fri is set to 100, Saturday takes the successive value.

    enum day {Sun, Mon, Tue, Wed, Thu, Fri = 100, Sat};
    int i;
    enum day today;
    today = Sat;
    lr_output_message ("Value of today is %i", (int)today);
Example: Output:
Action.c(11): Value of today is 101