正在加载图片...
3写出下列程序的运行结果# include <stdi结果:2,1 #include <stdio. h> maino main( i int i=1,j-l, k-1 {inta=4,b=3,c=5,t=0; if(〔j++‖k++)&&i++) f(a<b) t=a: a=b: b=t: printf(“%d,%d,%dn”,j1j,k) if (a<c) t=a: a=c:c=t printf(“%d,%d,%dn”,a,b,e); #include <stdio.h> maino 结果 int x, y=5; 结果:503 X printi(%dn”,x); else printf(“%dⅦn”,x+2)16 #include <stdio.h> main() { int a=4,b=3,c=5,t=0; if (a<b) t=a;a=b;b=t; if (a<c) t=a;a=c;c=t; printf(“%d,%d,%d\n”,a,b,c); } 3.写出下列程序的运行结果 #include <stdio.h> main() { int i=1,j=1,k=1; if ((j++ || k++) && i++) printf(“%d ,%d, %d\n”,i,j,k); } #include <stdio.h> main() { int x,y=5; if (x=y!=0) printf(“%d \n”,x); else printf(“%d \n”,x+2); } 结果:503 结果:2,2,1 结果:1
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有