A、swap(int a,int b) { int t=a;a=b;b=t;}
B、swap(int *a,int *b) {int *c;*c=*a;*a=*b;*b=*c;}
C、swap(int *a,int *b) {int *c;c=a;a=b;b=c;}
D、swap(int &a,int &b) {int c=a;a=b;b=c;}
A、swap(int a,int b) { int t=a;a=b;b=t;}
B、swap(int *a,int *b) {int *c;*c=*a;*a=*b;*b=*c;}
C、swap(int *a,int *b) {int *c;c=a;a=b;b=c;}
D、swap(int &a,int &b) {int c=a;a=b;b=c;}
A、5 8
B、8 5
C、5 5
D、8 8
A、Compared to x(t), y(t) is advanced by 4
B、Compared to x(t), y(t) is delayed by 4
C、Compared to x(t), y(t) is advanced by 2
D、Compared to x(t), y(t) is delayed by 2
void swap(char *x,char *y)
{char t;
t=*x; *x=*y; *y=t;
}
main()
{char *s1="abc",*s2="123";
swap(s1,s2);printf("%s,%s\n",s1,s2);
}
程序执行后的输出结果是
A.123,abc
B.abc,123
C.1bc,a23
D.321,cba
A、emphasizes the role of import and export demand.
B、emphasizes stocks of assets.
C、both of the above.
D、neither of the above.
A、1 2 1 2
B、2 1 1 2
C、1 2 2 1
D、2 1 2 1
B、3,2,-1
C、4,3,-1
D、5,-2,-5
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!