/* Intentionally incorrect: run with AddressSanitizer for the lesson. */
#include <stdio.h>

int main(void) {
    int values[3] = {10, 20, 30};
    int total = 0;
    for (int i = 0; i <= 3; ++i) {
        total += values[i]; /* i == 3 is outside the array. */
    }
    printf("total = %d\n", total);
    return 0;
}
