下面程序的运行结果是( ).main( ) { int a,b; int *p1=&a,*p2=&b,*t; a=10; b=20; t=p1; p1=p2; p2=t;下面程序的运行结果是( ).main( ){ int a,b;int *p1=&a,*p2=&b,*t;a=10; b=20;t=p1; p1=p2; p2=t;printf("%d,%d\n",a,b); }A.\x05 10,20
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/01 06:49:19
![下面程序的运行结果是( ).main( ) { int a,b; int *p1=&a,*p2=&b,*t; a=10; b=20; t=p1; p1=p2; p2=t;下面程序的运行结果是( ).main( ){ int a,b;int *p1=&a,*p2=&b,*t;a=10; b=20;t=p1; p1=p2; p2=t;printf(](/uploads/image/z/11446413-69-3.jpg?t=%E4%B8%8B%E9%9D%A2%E7%A8%8B%E5%BA%8F%E7%9A%84%E8%BF%90%E8%A1%8C%E7%BB%93%E6%9E%9C%E6%98%AF%EF%BC%88+%EF%BC%89.main%28+%29+%7B+int+a%2Cb%3B+int+%2Ap1%3D%26a%2C%2Ap2%3D%26b%2C%2At%3B+a%3D10%3B+b%3D20%3B+t%3Dp1%3B+p1%3Dp2%3B+p2%3Dt%3B%E4%B8%8B%E9%9D%A2%E7%A8%8B%E5%BA%8F%E7%9A%84%E8%BF%90%E8%A1%8C%E7%BB%93%E6%9E%9C%E6%98%AF%EF%BC%88+%EF%BC%89.main%28+%29%7B+int+a%2Cb%3Bint+%2Ap1%3D%26a%2C%2Ap2%3D%26b%2C%2At%3Ba%3D10%3B+b%3D20%3Bt%3Dp1%3B+p1%3Dp2%3B+p2%3Dt%3Bprintf%28%22%25d%2C%25d%5Cn%22%2Ca%2Cb%29%3B+%7DA.%5Cx05+10%2C20)
x){EWt?|Vˋ^,y{ysX~O=zy
y%
:I`VZVZVBB,-0V *)0RF%$YUH6aZTPԓ4FZQ/T@&H'FR`6j0`$'8#r`# F:g
\P~͈O_O'$aϓ
goyaMx])v h_\g
4 )j
下面程序的运行结果是( ).main( ) { int a,b; int *p1=&a,*p2=&b,*t; a=10; b=20; t=p1; p1=p2; p2=t;下面程序的运行结果是( ).main( ){ int a,b;int *p1=&a,*p2=&b,*t;a=10; b=20;t=p1; p1=p2; p2=t;printf("%d,%d\n",a,b); }A.\x05 10,20
下面程序的运行结果是( ).main( ) { int a,b; int *p1=&a,*p2=&b,*t; a=10; b=20; t=p1; p1=p2; p2=t;
下面程序的运行结果是( ).
main( )
{ int a,b;
int *p1=&a,*p2=&b,*t;
a=10; b=20;
t=p1; p1=p2; p2=t;
printf("%d,%d\n",a,b);
}
A.\x05 10,20
B.\x05 20,10
C.\x05 10,10
D.\x05 20,20
下面程序的运行结果是( ).main( ) { int a,b; int *p1=&a,*p2=&b,*t; a=10; b=20; t=p1; p1=p2; p2=t;下面程序的运行结果是( ).main( ){ int a,b;int *p1=&a,*p2=&b,*t;a=10; b=20;t=p1; p1=p2; p2=t;printf("%d,%d\n",a,b); }A.\x05 10,20
a和b的值一直就没变过,答案是A