下列程序的运行结果是()。 #include #include FUN(char *w,int n) { char temp,*s1,*s2; s1=w; s2=w+n-1; while(s1temp=*s1++; *s1=*s2--; *s2=temp; } } main( ) { char *p; p=“1234567”; FUN(p,strlen(p)); puts(p); }
填空题执行下列程序的输出结果是()。 #include #include main( ) { char a[80]=“AB”, b[80]= “LMNP”; int i=0; strcat(a,b); while(a[i++]!=‘ 0’) b[i]=a[i]; puts(b); }
填空题执行下列程序的输出结果是()。 #include main( ) { int x=10; do{ x--; }while(--x); printf(“%d n”,x--); }