当前位置:考试网  > 试卷库  > 计算机类  > 等级考试  > 计算机二级  > MySQL数据库程序设计  > 对下述程序的判断中,正确的是()。 #include main() {char*p,s[256]; p=s; while(strcmp(s,"theend")) {printf("Inputthestrin9:"); gets(s); while(*p) putchar(*p++); }}
试题预览

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

#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

答案解析:

暂无解析

你可能感兴趣的试题

Whichofthefollowingispartiallyconverted?

英语翻译:Vatican

我感谢陆登庭校长的邀请,使我有机会在这美好的金秋时节来到你们这座美国古老而又现代化的学府。()

Whenareadercomesacrosstheword“home”inhisreading,thewordmayremindhimofhis“family,friends,warmth,safety,etc.”Inthissense,theword“home”conveys______.

Perseveranceisakindofqualityandthatis_______ittakestodoanythingwell.

扫一扫,手机做题