以下程序运行后的输出结果是( )。 #include char*ss(char*s) {char*p,t; P=s+1;t=*s; while(*p){ *(P-1)=*P;P++;} *(P-1)=t;

admin2011-06-10  23

问题 以下程序运行后的输出结果是(       )。
   #include
   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);
}

选项

答案bcdefgha

解析
转载请注明原文地址:https://kaotiyun.com/show/A3Pp777K
0

最新回复(0)