首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下程序运行后的输出结果是( )。 #include char*ss(char*s) {char*p,t; P=s+1;t=*s; while(*p){ *(P-1)=*P;P++;} *(P-1)=t;
以下程序运行后的输出结果是( )。 #include char*ss(char*s) {char*p,t; P=s+1;t=*s; while(*p){ *(P-1)=*P;P++;} *(P-1)=t;
admin
2011-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
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
E-mail地址由域名和用户名两部分组成,它们之间用@分隔,其中在@后面的部分是【】。
已有定义:int i,a[10],*p;,则合法的赋值语句是
有以下程序main(){inta=3,b=4,c=5,d=2;if(a>b)if(b>c)printf("%d",d+++1);elseprintf("%d",++d+1);printf("%d\n",d
以下程序段中,错误的行号是【】。①#include<stdio.h>②main()③{charstr[14];str[]={"IloveChina!"};④printf("%s",str);
以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请填空。#include<stdlib.h>stuctnode{chardata;struetn
有以下程序:#include<stdio.h>main(){inta=7,b=8,*p,*q,*r;p=&a;q=&b;r=p;p=q;q=r;printf("%d,%d,%d,%d\n",
数据库系统的核心是()。
对如下二叉树进行后序遍历的结果为()。
下列关于队列的叙述中正确的是______。
设有栈S和队列Q,其初始状态为空,元素a1、a2、a3、a4、a5、a6依次入栈,出栈的元素进入队列Q,若6个元素出队列的顺序是a2、a4、a3、a6、a5、a1,则栈的容量至少是______。
随机试题
12型链条式抽油机的优点有哪些?
凝集反应是可溶性抗原与相应抗体在适当电解质存在下形成肉眼可见的凝集现象。
低价倾销低于成本出售过季商品
甲与乙打架时丙正好路过,其不慎被丢来的石块砸伤遂起诉到法院要求甲、乙赔偿医疗费、误工费等损失。法院组成合议庭审理本案。根据案情回答以下问题:丙知晓审判员丁和甲之间有师生关系,法院的院长也知道书记员戊是乙的姐夫,那么关于本案的回避,下列说法正确的是:(
From:ChadBecker,theDirectorofPersonnelTo:EmployeesOurfinancialadvisorshavefinallyreacheda【K4】______onaplan
下面的式子中,()是方程。
试运用国际收支的货币主义理论分析货币贬值能否真正解决一国国际收支的逆差问题。
2019年以来,朝鲜半岛局势继续吸引了全世界的目光。在朝美领导人会晤未取得明显进展之后,2019年初,朝鲜要求美方更换双方会谈团队负责人蓬佩奥,但美方未予理睬,朝美谈判再次陷入僵局,美国解除对朝鲜制裁也遥遥无期。2019年4月下旬,金正恩访俄并与普京会谈。
下列关于函数的叙述中,正确的是
ThematurityofITindustryandtheintegrationofITintothemainstreamofeconomicactivityand______constraintshaveforce
最新回复
(
0
)