在TC2.0中为什么Max函数的参数要用*,而在TC3.0中或者更高的编译器中却可以用&,大神帮帮忙
嘎哈年糕条 2018-09-15 08:01:07 typedef int status;
typedef struct{
status A;
}sqlist;
status Max(sqlist *a,status n)
{//求最大值。
status max,i;
max=a[0].A;
for(i=1;i<n;i++)
if(max<a[i].A) max=a[i].A;
return max;
}//Max