Your array has 3 elements, so valid indexes are 0, 1 and 2. You index it with 'zero' which you only increment (with 'zero++'). What do you want to happen when zero reaches 3? Try 'instrumenting' your...