/*
 * test this program with multiple compilers
 * ===> gcc/clang/tcc/pcc <===
 * and see the result.
 */

#include <stdio.h>

int
main()
{
    int a[5] = {-10, 10, 20, 30, 40};
    int i = 0;

    a[i] = i++;         /* side effect */

    printf("=>%d\n", i);
    for (i = 0; i < 5; i++)
        printf("%d%c", a[i], i == 4 ? '\n' : ' ');

    return 0;
}
