C Program to Calculate Sum of all Elements of an Array using Pointers as Arguments