Share this page

# Example: short

The following example defines an array of short integers named `arr`. Each successive element is set to the incremented value of the short integer i.

        #define ARRAY_SIZE 4
        short i, arr[ARRAY_SIZE];
        while (i < ARRAY_SIZE) {
            arr[i] = i;
            lr_output_message ("i=%d", i);
            i++;
        }

    Example: Output:
    Action.c(11): i=0
    Action.c(11): i=1
    Action.c(11): i=2
    Action.c(11): i=3

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: