signed/unsigned mismatch错误
#include<stdio.h>#include<stdlib.h>
int qiuzd(int *,unsigned);
{
int a[3]={5,7,9};
printf("%d\n",qiuzd(&a[0],sizeof a/ sizeof*a));
system("PAUSE");
return 0;
}
int qiuzd(int *p, unsigned n)
{
int i,zd=*p;
for(i=0;i<n;i++)
{
if(*(p+i)>zd)
{
zd=*(p+i);
}
}
return zd;
}
用VC++6.0编译出错 提示:warning C4018: '<' : signed/unsigned mismatch
求解???