pengzeming
2015-11-26 21:13
#include <stdio.h>
int joneResult(int x, int y, int z)
{
int sum = (x+y+z)/3;
return 0;
}
void jackResult(int x, int y, int z)
{
printf("我算不出来\n");
}
int main()
{
int a, b, c,jr;
a = 10;
b = 20;
c = 30;
jr = joneResult(a, b, c);
printf("Jone运算结果是:%d\n",jr );
printf("Jack运算结果是:");
jackResult(a,b,c);
return 0;
}
应该是return sum
joneResult函数返回值是0,jr的值所以是0
C语言入门
926210 学习 · 20797 问题
相似问题