black

软件工程

登录

填空题

下列程序的运行结果是()。     
#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); 
}

【参考答案】

1711717

相关考题

填空题 执行下列程序的输出结果是()。  #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--);  }

单项选择题 若需要打开一个已经存在的非空文件“FILE”,并对其进行修改,正确的打开语句是()。

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2