/*-------------------------------------------------------【程序填空】---------------------------------------------------------题目:给定程序中,函数fun的功能是:统计形参s所指的字符串中数字字符出现的次数, 并存放在形参t所指的变量中,最后在主函数中输出。例如:若形参s所指的字符串为"abcdef35adgh3kjsdf7",则输出结果为4。-------------------------------------------------------*/#include <stdio.h>void fun(char *s, int *t){ int i, n; n=0;/***********SPACE***********/ for(i=0; s[i] !=0; i++)/***********SPACE***********/ if(s[i]>='0'&&s[i]<='9' ) n++;/***********SPACE***********/ *t=n ;}main(){ char s[80]="abcdef35adgh3kjsdf7"; int t; printf("\nThe original string is : %s\n",s); fun(s,&t); printf("\nThe result is : %d\n",t);}