Share this page

# 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

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: