下面程序的输出结果是()
#include
sub(intx,inty,int*Z)
{*z=y-x;}
main()
{inta,b,c;
sub(10,5,&a);sub(7,a,&b);sub(a,b,&c);
prinff("%d,%d,%d\n",a,b,c);
}
A.5,2,3 B.-5,-12,-7 C.-5,-12,-17 D.5,-2,-7正确答案B
下面程序的输出结果是()
#include
sub(intx,inty,int*Z)
{*z=y-x;}
main()
{inta,b,c;
sub(10,5,&a);sub(7,a,&b);sub(a,b,&c);
prinff("%d,%d,%d\n",a,b,c);
}
A.5,2,3 B.-5,-12,-7 C.-5,-12,-17 D.5,-2,-7正确答案B