This program adds all the elements of array and print the sum and average of it using pointers and function. This is a part of Mumbai University MCA Colleges C program MCA Sem 1
void add(int *, int);
printf("Enter no of elements you want to enter in array");
void add(int *x , int y)
printf("\nSum of array= %d",sum);
printf("\nAverage of array elements = %f",avg);}
Hope this Program is useful to you in some sense or other. Keep on following this blog for more Mumbai University MCA College Programs. Happy Programming and Studying.