I like the second method (summing in a loop and dividing at the end) better, and can identify the second method much faster than the first.
The performance differences, if any, are irrelevant.
And, if a sum of values overflows a big enough data type, you'll probably have more problems than calculating an average.