/******************************************************************************

                            Online C Compiler.
                Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <stdio.h>
int main(){
	int a[10];
	int size = 10;
	change(a, size);
}

static double change(int *a, int size){
	int sum;
	double average;
	for(int i = 0; i < size; i++){
		a[i] = a[i]+10;
		sum += a[i];
	}
	average = sum / size;
	return average;
}

In the space below, write a small program that allocates an array of integers in the main function and passes
that array to a function called change. (You’ll also need to pass in the length of the array – why?) The function
should do two things:
• Add 10 to each element of the array.
• Return the average of the new contents of the array.
