Systems Programming - C Integer Averager