int total_four(const int (&values)[4]) { int total = 0; for (int index = 0; index <= 4; ++index) { total += values[index]; } return total; }