以下程序运行后的输出结果是【 】。 main() { int p=30; printf("%dkn",(p/3>0?p/10:
以下程序运行后的输出结果是【 】。 main() { int p=30; printf("%dkn",(p/3>0?p/10:p%3)); }
以下程序运行后的输出结果是【 】。 main() { int p=30; printf("%dkn",(p/3>0?p/10:p%3)); }
第1题
以下程序运行后的输出结果是______。 main { inn a=b= c=5: if (c=a+b) printf ("yes\n); else printf ("no\n); }
第2题
有以下程序 main(){ inti=l; i=i^i; printf(%d\n,1);} 程序运行后的输出结果是
A.-1
B.0
C.1
D.7
第3题
以下程序运行后的输出结果是【 】。 include <stdio.h> msin() { int i,n[]={0,0,0,0,0}; for(i=1;i<=4;i++) { n[i]=n[i-1]*2+1; printf("%d",n[i]); } }
第4题
以下程序运行后的输出结果是______。 inClude <strinq.h> char *ss(char *s) { char *p;t; p=S+1;t=*s; while(*p){*(p-1)=*p;p++;} *(p-1)=t; return s; } main() { char *p,str[10]="abcdefgh"; p=ss(str); printf("%s\n",p); }
第5题
以下程序运行后,输出结果是______。 include<stdio.h> define PT 5.5 difine S(x) PT*x*x main() { int a=1,b=2; printf("%4.1f/n",S(a+b)); }
A.49.5
B.9.5
C.22
D.45
第6题
以下程序运行后的输出结果是【 】。 include <string. h> cbar *ss(char *s) { char *p, t; p=s+1; t=*s; while(-p){*(p-1)=*p; p++;} *(p-1)=t; return s; } main() { char *p, str[10]="abcdefgh"; p=ss(str); printf("% s\n", p); }
第7题
以下程序运行后,输出结果是 define PT 5.5 define S(x) PT*x*x include<stdio.h> main() { int a=1,b=2; printf("%4.1f\n",S(a+b));}
A.49.5
B.9.5
C.22
D.45
第8题
有以下程序 include<stdio.h> inta=1,b=2; yoidfunl(inta,intb) {printf(%d%d,a,b);} yoidfun2() {a=3;b=4;} main() {funl(5,6);fun20; printf(%d%d\n,a,b); } 程序运行后的输出结果是
A.3456
B.1256
C.5612
D.5634
第9题
A.1002,ChangRong,1202.0
B.1001,ChangRong,1098.0
C.1001,ZhangDa,1098.0
D.1002,ZhangDa,1202.0
第11题