以下是"public static void test(int x, int y)"的方法重载()
A、public static void Test(int x)
B、public static void test(int x, int y,int z)
C、public static void test(int y, int x)
D、public static void test(int x, int y)
A、public static void Test(int x)
B、public static void test(int x, int y,int z)
C、public static void test(int y, int x)
D、public static void test(int x, int y)
#include(iostream.h>
voidsub(intx,inty,int*z)
{*z=y-x;}
voidmain()
{inta,b,c;
sub(10,5,&a);
sub(7,a,&b);
sub(a,b,&c);
cout((a$amp;A.5,2,3
B.-5,-12,-7
C.-5,-12,-17
D.5,-2,-7
A、a=10 b=10
B、a=10 b=20
C、a=20 b=10
D、a=20 b=20
A.4
B.17
C.18
D.0.25
void f(int x,int y)
{ int t;
if(x
}
main
{ int a=4,b=3,c=5;
f(a,b);f(a,c);f(b,c);
printf("%d,%d,%d\n",a,b,c);
}
执行后输出结果是()。
A.3,4,5
B.5,3,4
C.5,4,3
D.4,3,5
void f(int y,int *x)
{ y=y+*x; *x=*x+y; }
main()
{int x=2,y=4;
f(y,&x);
ptintf("%d %d\n",x,y);
}
执行后输出结果是【 】。
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!