0) {fputs(a,fp); fputs("\n",fp);} fclose(fp);} 成人教育考试题库,行测答案,形考答案,公务员考试答案,电大考试,青书考试,奥鹏考试,会计初级考试,注册税务师考试,会计中级考试,注册会计师考试,统计师考试,会计从业考试,银行从业考试,统计从业考试答案,导游资格考试,国家秘书考试,职称计算机考试,软件水平考试,计算机三级考试,计算机四级考试,计算机基础考试答案,国家公务员考试,事业单位考试,教师招聘考试答案,政法干警考试,村官考试,职称英语考试,研究生考试考试,高考考试,会计专科考试,自考考试,执业药师考试,护士资格考试,卫生技术资格考试,初级护师考试,临床助理考试," /> 0) {fputs(a,fp); fputs("\n",fp);} fclose(fp);}的答案是什么?" />
首页/ 题库 / [单选题]阅读下面程序,程序实现的功能是(a123的答案

阅读下面程序,程序实现的功能是(a123.txt在当前盘符下已经存在)
#include"stdio.h"
voidmain()
{FILE*fp;
inta[10],*p=a;
fp=fopen("a123.txt","w");
while(strlen(gets(p))>0)
{fputs(a,fp);
fputs("\n",fp);}
fclose(fp);}

单选题
2021-07-17 21:15
A、从键盘输入若干行字符,按行号倒序写入文本文件a123.txt中
B、从键盘输入若干行字符,取前2行写入文本文件a123.txt中
C、从键盘输入若干行字符,第一行写入文本文件a123.txt中
D、从键盘输入若干行字符,依次写入文本文件a123.txt中
查看答案

正确答案
D

试题解析

感兴趣题目
设a=2,b=3,c=4,d=5,下列表达式的值是( )。 3>2*b Or a=c And b<>c Or b<>a+c
下列程序段运行后窗体上输出结果为( )。 Private Sub Command1_Click() a=5: b=4: c=3: d=2 x=3>2*b Or a=c And b<>c Or c>d Print x End Sub
下列程序段运行后窗体上输出结果为( )。 Private Sub Command1 Click() a=5:b=4:c=3:d=2 X=3>2*b Or a=c And b<>C Or c>d Print X End Sub
翻译:With Average or With Particular Average(WA or WPA)()
设a=′′a′′,b=′′b′′,c=′′c′′,d=′′d′′,执行语句x=IIf((ad),′′A′′,′′B′′)后,x的值为(  )。
Every deliberate act of wrongdoing by the master or any of the crew against the ship or cargo,without the authorization or privity of the Shipowner or his agent,is().
(), or drum is used for hauling in or letting out the wires or ropes which will fasten the ship to the shore.
A salvor may be()the whole or part of the payment due under Salvage Convention to the extent that the salvage operations have become necessary or more difficult because of fault or neglect on his part or if the salvor has been guilty of fraud or other dishonest conduct.
The () is used for hauling in or letting out the wires or ropes.
Vessels must be()valid certificate of nationality or certificated of registry or license.
逻辑运算符(AND、NOT、OR)的运算顺序是AND→OR→NOT。
逻辑运算符(AND、NOT、OR)的运算顺序是AND→OR→NOT。
相关题目
boost的意思是:help or encourage to increase or improve
eloquent的意思是:fluent or persuasive in speaking or writing

A campus emergency ______ occur at any time of the day or night, weekend, or holiday, with little or no warning.

已知A=40;B=30;C=100;D=50,逻辑“与”运算符为and,“或”运算符为or,“非”运算符为not。计算表达式(A>B+20)or(B+60<>
设a=5,b=4,c=3,d=2,则表达式3>2*b Or a=c And b<>c Or c>d的值是
设a=5,b=4,c=3,d=2,则表达式3>2*b Or a=c And b<>c Or c>d的值是
系统中雷达状态包括Unknown、Operational(or ON)、Failed(or OFF)、Detached。
Shutdown price(or point,or rule) 停业价格(或停业点、停业原则)
设a=2,b=3,c=4,d=5,表达式3>2*b or a=c and b<>c or c>d的值是( )
设a=5,b=4,c=3,d=2,则表达式3>2术b Or a=c And b<>c Or c>d的值是
设a=5,b=4,c=3,d=2,下列表达式的值是 3>2*b Or a=c And b<>C Or c>d
设a=5,b=4,c=3,d=2,则表达式3>2*b Or a=c And b<>c Or c>d的值是
设a=5,b=4,c=3,d=2,下列表达式的值是( )。 3>2*b Or a=c And b<>c Or c>d
设a=5,b=4,c=3,d=2下列表达式的值是 3>2*b Or a=c And b<>C Or c>d
设a=5,b=4,c=3,d=2下列表达式的值是( )。3 > 2 * b Or a = c And b <> c Or c > d
设a=5,b=4,c=3,d=2,下列表达式的值是 3>2*b Or a=c And b<>c Or c>d
设a=2,b=3,c=4,d=5,下列表达式的值是( )。 3>2*b Or a=c And bc Or ba+c
设t=2,b=3,c=4,d=5,则下面语句输出的是( )。 Print3>2*b Or a=c And b<>c Or c>d
设a2,b=3,c=4,d=5,则下面语句的输出是Print 3>2*b Or a=c And b<>c Or c>d
设t=2,b=3,c=4,d=5,则下面语句输出的是( )。 Print3>2*b Or a=c And bc Or c>d
广告位招租WX:84302438

免费的网站请分享给朋友吧