对下述程序的判断中,正确的是()。

#include

main()

{char*p,s[256];

p=s;

while(strcmp(s,"theend"))

{printf("Inputthestrin9:");

gets(s);

while(*p)

putchar(*p++);

}}

A、此程序循环接收字符串并输出,直到接收到字符串“theend”为止
B、此程序循环接收字符串,接收到字符串“theend”则输出,否则程序终止
C、此程序循环接收字符串并输出,直到接收字符串“theend”为止,但因为代码有错误,程序不能正常工作
D、此程序循环接收字符串并将其连接在一起,直到接收字符串“theend”为止,输出连接在一起的字符串
查看答案
正确答案:

C

答案解析:

暂无解析

上一题
你可能感兴趣的试题

Withthepublicationof(),TheodoreDreiserwaslaunchinghimselfuponalongcareerthatwouldultimatelymakehimoneofthemostsignificantAmericanwritersoftheschoollaterknownasliterarynaturalism.

A、SisterCarrie
B、TheTitan
C、AnAmericanTragedy
D、TheStoic

英语翻译:奥运会

WhichofthefollowingwordsdoesNOThavesuffixes?

A、Northward
B、Widen
C、Happy
D、Worker

Theword“minister”originallymeant“aservant”,butnowhaschangedto“aheadofaministry”.Thisprocessofmeaningchangeiscalled______.

A、extension
B、elevation
C、degradation
D、specialization

英语翻译:御花园

热门试题 更多>
相关题库更多>
公共基础
Python语言程序设计
MS Office高级应用
Web程序设计
MySQL数据库程序设计
试卷库
试题库