以下程序的计算结果是()。class Test { public static void main(String[] args){int d=5;intc
以下程序的计算结果是()。
class Test { public static void main(String[] args){int d=5;int
c=2;float x=d/c;System.out.println("x="+x);} }
以下程序的计算结果是()。
class Test { public static void main(String[] args){int d=5;int
c=2;float x=d/c;System.out.println("x="+x);} }
A. 222
B. 233
C. 223
D. 345
A.-1
B.Exception
C.1
D.0
以下程序的输出结果是______。
main()
{ char st[]:"hello\O\t\\";
printf("%d,%d\n",strlen(st),sizeof(st));
}
以下程序运行后的输出结果是______。
char s[]="\\141\141abc\t";
printf("%d\n",strlen(s));
以下程序段的输出结果是______。
char s[]="\\101\101abc\t";
printf("%d\n",strlen(s));
以下程序的输出结果是______。
#define MAX(x,y) (x)>(y)?(x):(y)
main()
{ int a=5,b=2,c=3,d=3,t:
t=MAX(a+b,c+d)*10;
printf("%d\n",t);
以下程序运行后的输出结果是【 】。 main() { int x=10,y=20,t=0; if(x==y)t=x;x=Y;Y=t; printf(“%d,%d\n”,x,y); }
以下程序运行后的输出结果是______。 void swap(int x,int y) { int t; t=x;x=y;y=t;printf("%d %d ",x,y); } main() { int a=3,b=4; swap(a,b);printf("%d %d\n",a,b); }
以下程序运行后的输出结果是______。 main() { int a=3,b=4,c=5,t=99; i[(b<a && a<C) t=a;a=c;c=t; if(a<c && b<C) t=b;b=a;a=t; printf("%d%d%d\n",a,b,c) ; }
以下程序的输出结果是【 】。 include <stdio.h> void swap(int *a, int *b) { int *t; t=a; a=b; b=t; } main() { int i=3,j=5,*p=&i,*q=&j; swap(p,q); printf("%d %d\n",*p,*q); }