c语言自定义函数
char prm(int x)
{char ch;
int i;
for(i=2;i<x;i++)
{
if(x%i==0) break;
}
if(i<x) return('Y');
else return('N');
}
为什么总显示type mismatch in redeclaration of "prm"
参考答案:在main函数上写
char prm(int x);
char prm(int x)
{char ch;
int i;
for(i=2;i<x;i++)
{
if(x%i==0) break;
}
if(i<x) return('Y');
else return('N');
}
为什么总显示type mismatch in redeclaration of "prm"
参考答案:在main函数上写
char prm(int x);