下列程序执行后输出的结果是 main() { char *a[6]={"AB","CD","EF","GH","IJ","KL"}; int i; for(i=0;i<4;i++) printf("%s",a[i]); printf("\n"); }
举一反三
- 以下程序的输出结果为. main() {char *alpha[6]={"ab","cd","ef","gh","ij","kl"}; char **p; int i; p=alpha; for(i=0;i<4;i++) printf("%s",p[i]); printf("\n"); }
- 中国大学MOOC: 下面程序执行后的输出结果是( )。#include int main(){ int i=0,s=0; for (;;) { if(i==3||i==5) continue; if (i==6) break; i++; s+=i; }; printf(%d,s); return 0;}#include int main(){ int i=0,s=0; for (;;) { if(i==3||i==5) continue; if (i==6) break; i++; s+=i; }; printf(%d,s); return 0;}#include int main(){ int i=0,s=0; for (;;) { if(i==3||i==5) continue; if (i==6) break; i++; s+=i; }; printf(%d,s); return 0;}#include int main(){ int i=0,s=0; for (;;) { if(i==3||i==5) continue;
- 下面程序的运行结果是______。 #include<stdio.h> main() { char s[]="012xy"; int i,n=0; for(i=0;s[i]!=0;i++) if(s[i]>= 'a'&&s[i]<= 'z') n++; printf("%d\n",n); }
- 【单选题】下面程序执行后的输出结果是()。#include <stdio.h>int main(){int i=0,s=0;for (;;) {if(i==3||i==5) continue;if (i==6) break;i++; s+=i;};printf("%d",s); return 0;}#include <stdio.h>int main(){int i=0,s=0;for (;;) {if(i==3||i==5) continue;if (i==6) break;i++; s+=i;};printf("%d",s); return 0;}#include <stdio.h>int main(){int i=0,s=0;for (;;) {if(i==3||i==5) continue;if (i==6) break;i++; s+=i;};printf("%d",s); return 0;}#include <stdio.h>int main(){int i=0,s=0; A. 10 B. 13 C. 21 D. 死循环
- 以下程序的输出结果是________。 int main() { char ch[3][4]={"123","456","78"},*p[3]; int i; for(i=0; i<3; i++) p[i]=ch[i]; for(i=0; i<3; i++) printf("%s",p[i]); return 0; }