使用VC++2010打开考生文件夹下prog1中的解决方案。此解决方案的项目中包含一个源程序文件prog1.c。在此程序中,定义了NxN的二维数组,并在主函数中赋值。请编写函数fun(),其功能是求出数组周边元素的平均值并将其作为函数值返回给主函数中的s。例如,若a数组中的值为0 1 2 7 91 9 7 4 52 3 8 3 14 5 6 8 25 9 1 4 1 则返回主程序后s的值应为3.375。注意:部分源程序在文件prog1.c中。请勿改动主函数main()和其他函数中的任何内容,仅在函数fun()的花括号中填入你编写的若干语句。试题程序:1 #include < stdio.h >2 #include < conio.h >3 #include < stdlib.h >4 #define N 55 double fun (int w[ ] [n])6 {78 }9 void main ()10 {11 FILE * wf ;12 int a[N][N] ={0,1,2,7,9,1,9,7,4,5,2,3,8,3,1,4,5,6,8,2,5,9,13 int i , j ;14 double s;15 system("CLS");16 printf ("*** The array *** \n ");17 for (i=0; i<N; i++)18 { for (j =0 ; j <N; j ++ )19 {printf ("% 4d ",a[i][ j ]);}20 printf ("\n ");21 }22 s = fun (a);23 printf (" *** The Result *** \n");24 printf ("The sum is : % lf\n",s);25 /******************/26 wf = fopen("out.dat","w");27 fprintf (wf,"% if",s);28 fclose(wf);29 /******************/30 }