为什么会提示运行成功,输出错误?
#include<stdio.h>
int joneResult(int x,int y,int z)
{
int sum = (x+y+z);
return sum/3;
}
void jackResult(int x,int y,int z)
{
printf("我算不出来\n");
return;
}
int main()
{
int a,b,c;
a=10;
b=20;
c=30;
int jR=joneResult(a,b,c);
printf("Jone的运算结果是: %d\n",jR);
printf("Jone的运算结果是:");
jackResult(a,b,c);
return 0;
}