Using Reduce With Array Definition In C