当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

下面程序的输出结果是( )。#include string.hfun(char*w int n){ char t *s1 *s2;s1=w; s2=w+n-


下面程序的输出结果是()。#include "string.h"fun(char*w,int n){ char t,*s1,*s2;s1=w; s2=w+n-1;while(s1<s2){ t=*s1++;*s1=*s2--;*s2=t;}}main(){ static char p[]="1234567";fun(p,strlen(p));printf("%s",p);}

A、7654321

B、1717171

C、7171717

D、1711717

参考答案
您可能感兴趣的试题
  • 下面程序的输出结果是 #include classexample { inta: public: example(int B.{a=n++;}

  • 阅读下面程序段,则执行后输出的结果是include "stdio.h"main(){ char fun(char,int);c

  • 下面程序的输出结果是【9】。 #include voidmain() { inta[6]={1,2,3,4,5,6}; for(inti=0;

  • 下面程序的输出结果是 #include #include voidmain() { charp1[10],p2[10]; strepy(p1,

  • 下面程序的输出结果是______。 #include main() {char *p[]=BOOL OPK H SP};int

  • 下面程序段的运行结果是()。(注:└┘代表空格)#include stdio.hmain(){ char s[6]s=abcdprintf(\\%s\\ s)}