请编写函数fun(),该函数的功能是:将M行N列的二维数组中的字符数据,按列的顺序依次放到一个字符串中。 例如,若二维数组中的数据为: W WWW S S S S H H H H 则字符串中的内容应是WSHWSHWSHWSH。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。 试题程序: #include<stdio.h> #define M 3 #define N 4 void fun(char (*s)[N],char *b) { } main() { char a[100],w[M][N]={{ ’W’, ’W’, ’W’, ’W’}, {’S’, ’S’, ’S’, ’S’},{’H’, ’H’, ’H’, ’H’}}; int i,j; printf("The matrix:\n"); for(i=0;i<M;i++) { for(j=0;j<N;j++) printf("%3c",w[i][j]); printf("\n"); } fun(w,a); printf("The A string:In"); puts(a); printf("\n\n"); }