传递数组给函数
#include <stdio.h>
/* 函数声明 */
double getAverage(int arr[], int size);//数组元素作为函数的参数
double getAverage_p(int *arr, int size);//指针元素作为函数的参数,通过指针将数组传递给函数
int main ()
{
/* 带有 5 个元素的整型数组 */
int balance[5] = {1000, 2, 3, 17, 50};
double avg;