How To Use Array Reduce Function In C