用C语言编写函数fun(char a[ ],int k,int n),其功能是:删除字符串中指...答:呵呵,好好学,要考试了吧;不要紧张,好好考啊;include<stdio.h> include<string.h> void fun(char a[],int k,int n);main(){ char a[80];int k;int n;printf("input string:\n");gets(a);printf("input k,n:\n");scanf("%d,%d",&k,&n);fun(a,k, n);return 0;} v...
求C语言,用指针写,编写一函数fun,功能是,求出数组的最大元素在数组中...答:include <stdio.h> int max_el(int array[], int size, int * k){ int iMax=0, i = 0, j = 0;for(i = 0; i < size; i++) { if (array[i] > iMax) { j = i;iMax = array[i];} } if (k) *k = iMax;return j;} int main(void){ int a[8] = {1,4,5,...