函数参数单向传递验证出错求教
#include <stdio.h>void try(int,int,int);
int main()
{
int x=2,y=3,z=0;
printf("(1) x=%d y=%d z=%d\n",x,y,z);
try(x,y,z);
printf("(4) x=%d y=%d z=%d\n",x,y,z);
}
void try(int x,int y,int z)
{
printf("(2) x=%d y=%d z=%d\n",x,y,z);
z=x+y;
x=x*x;
y=y*y;
printf("(3) x=%d y=%d z=%d\n",x,y,z);
}