#include "stdio.h"#include "conio.h"#define M 8float max(float a[],int n); /**//*函数声明*/void main(){ clrscr(); float sumf,sump; float a[M]={11,2,-3,4.5,5,69,7,80}; float (*p)(float a[],int); /... Read More
注意: 指针函数的返回值一定要是地址,并且返回值的类型要与函数类型一致。 #include "stdio.h"#include "conio.h"int *min(int,int);int *minp(int *,int *);void main(){ int a,b,*p; clrscr(); scanf("%d,%d",&a,&b); p=min(a,b); prin... Read More