首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序运行后,输出结果是______。 #include <stdio. h> #include <string. h> fun (char *w ,int n) { char t,*s1,*s2;
下列程序运行后,输出结果是______。 #include <stdio. h> #include <string. h> fun (char *w ,int n) { char t,*s1,*s2;
admin
2013-02-23
7
问题
下列程序运行后,输出结果是______。 #include <stdio. h> #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 () { char *p; p="1234567"; fun (p, strlen (p)); puts (p); }
选项
A、1234567
B、7654321
C、1711717
D、7177171
答案
4
解析
转载请注明原文地址:https://jikaoti.com/ti/0CB0FFFM
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
设intx=7,则~x的值是()。
若有说明:int*p1,*p2,n=8,m;下列均是正确赋值语句的选项是()。
若有以下说明和定义:uniondt{inta;charb;doublec;}data;以下叙述中错误的是()。
以下不能定义为用户标识符的是()。
若有定义:intx=0,*p=&x;,则语句printf("%d\n",*p);的输出结果是()。
软件需求分析阶段的工作,可以分为四个方面:需求获取,需求分析,编写需求规格说明书,以及()
以下程序运行后的输出结果是【】。#include<string.h>char*ss(char*s){char*p;t;p=s+1;t=*s;while(*p){*(p-1)=*p;p++;}
若已建立如下图所示的单向链表结构:在该链表结构中,指针p、s分别指向图中所示结点,则不能将s所指的结点插入到链表末尾仍构成单向链表的语句组是______。
在面向对象的程序设计中,下列叙述中错误的是()。
随机试题
香港特别行政区设立__________、__________、区域法院、__________和其他专门法庭。
A.饥不欲食B.消谷善饥C.食欲不振D.厌食食积肠胃之人可见
A.卵磷脂B.心磷脂C.脑磷脂D.鞘磷脂上述物质合成时不需要丝氨酸的是
悲忧过度,则可损伤
乙型脑炎病毒主要的传染源和中间宿主是
女性患者,36岁。引产1周后发热伴腹痛2天。查体:全腹软,少量阴道血性分泌物,宫颈举痛(+),子宫增大如孕3个月,宫体压痛,双附件增厚压痛,T39℃,WBC18×109/L,中性粒细胞90%。本病例的鉴别诊断有
背景某施工总承包企业承担北京某综合楼工程。建筑面积43457m2,筏板基础,框架剪力墙结构。地下二层,地上十层。2015年10月1日开工,2017年6月1日竣工。北京地区2015年、2016年冬期施工期限是11月15日至3月15日。2016年6月15日至
由于工程质量形成的影响因素多,所以对工程质量状况的调查和质量问题的分析必须分门别类地进行,以便准确有效地找出问题及其原因,这是( )的基本思想。
WhendidKantbecomeaprofessor?
Theleadershould______everysuggestionworthyofcarefulconsiderationwhichisputforwardbythemasses.,
最新回复
(
0
)