A.#include<stdio.h> void swap(int x,int y); int main() { int a=5,b=3; swap(a,b); printf("a=%d,b=%d\n",a,b); return 0; } void swap(int x,int y) { int z=x; x=y; y=z; }
B.#include<stdio.h> void swap(int *x,int *y); int main() { int a=5,b=3; swap(&a,&b); printf("a=%d,b=%d\n",a,b); return 0; } void swap(int* x,int* y) { int z=*x; *x=*y; *y=z; }
C.#include<stdio.h> void swap(int *x,int *y); int main() { int a=5,b=3; swap(&a,&b); printf("a=%d,b=%d\n",a,b); return 0; } void swap(int* x,int* y) { int *z=*x; *x=*y; *y=z; }
D.#include<stdio.h> void swap(int *x,int *y); int main() { int a=5,b=3; swap(a,b); printf("a=%d,b=%d\n",a,b); return 0; } void swap(int* x,int* y); { int z=*x; *x=*y; *y=z; }
第3题
第4题
第7题
A.使得JSP代码具有服务器端动态网页的功能
B.使得JSP代码具有客户端动态网页的功能
C.减少代码(Scriptlet)的编写量,使得JSP成为真正意义上的标签语言
D.以上都不是
第9题
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;}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!