【单选题】【消耗次数:1】
文件结束标志是()
\0
EOF
\n
0
参考答案:
复制
纠错
相关题目
【单选题】 程序段char a[ ]=“English”; char *p=a; int n=0; while( *p!=‘\0’){ n++; p++;} 结果中,n的值是( )。
①  A. 6
②  B.8
③  C.5
④  D.7
【判断题】 串是n个字母的有限序列(n≥0 )。
①  正确
②  错误
【单选题】 程序段char a[ ]=“English”; char *p=a; int n=0;while( *p!=‘\0’){ n++; P++;}结果中,P指向( )。
①  A. 字符h
②  B.a
③  C. 字符串的结束符
④  D.7
【单选题】 当文件指针已经指向文件尾时,EOF()函数的返回值是?
①  Null
②  1
③  False
④  True
【单选题】 以下程序的运行结果是()。voidmain(){intm,n=1,t=1;if(t==0)t=-t;elsem=n=0?7:3;printf("%d\n",m);}
①  3
②  -1
③  7
④  1
【单选题】 请阅读以下程序: main() {int a=5,b=0,c=0; if(a=b+c) printf(***\n else printf($$$\n
①  以上程序:有语法错误不能通过编译
②  可以通过编译但不能通过连接
③  输出***
④  输出$$$
【单选题】 设有定义 int a[10]={0,0,0,0,0,0,0,0,0,0};则说法正确的是( )。
①  数组a有1个元素,其值为0
②  数组a有10个元素,各元素的值为0
③  数组a有10个元素,其中a[0]的值为0,其他元素的值不确定
④  数组初始化错误,初值个数少于数组元素个数
【单选题】 若数组A[0…m][0…n]按列优先顺序存储,则aij地址为( )。
①  LOC(a00)+[j*m+i]
②  LOC(a00)+[j*n+i]
③  LOC(a00)+[(j-1)*n+i-1]
④  LOC(a00)+[(j-1)*m+i-1]
【单选题】 下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①  1
②  2
③  3
④  5
【判断题】 FLAGS称为标志寄存器,其中OF是溢出标志,SF是符号标志,ZF是零标志,CF是进位标志,当SF=0时,表示结果为正数,当ZF=1时,表示结果为0。
①  正确
②  错误
随机题目
【单选题】 Hecould_____neitherFrenchnorGerman.SoI_____withhiminEnglish.
①  speak;talked
②  talk;told
③  say;spoke
④  tell;talked
【单选题】 —_______________________.—Ihavetoweighyourletterfirst.That’sonedollarfifteencents.
①  What’sthepostage?
②  Howmuchistheletter?
③  Whatdoyoudo?
④  Howareyou?
【单选题】 Scientistsaroundtheworldareworkinghardto______acureforAids.
①  invent
②  discover
③  look
④  search
【单选题】 Myparentswillgotherebytaxibecauseitisraining________.
①  badly
②  hardly
③  probably
④  heavily
【单选题】 -Thedishwasherlooksnice.Howmuchdoyouchargeforit?-$1498.-It’sratherexpensive.________________?-Ifyoureallywantit,wecangiveyouatenpercentdiscountoff.
①  Idon’ttakeit.
②  Canyousellit?
③  Can’tyoumakeitcheaper?
④  Canyoupackit?
【单选题】 --Whereismydictionary?--Iremember______itbacktoyou.Perhapsyouleftitsomewhereelse.
①  togive
②  giving
③  tohavebeengiven
④  gave
【单选题】 Ofallthestudents,Lindadraws_____carefully.
①  very
②  much
③  more
④  most
【单选题】 -Anydevelopmentaboutyourjob-hunting?-__________________________________.
①  Ihaventfoundoneyet.
②  Iamsatisfiedwithmyjob.
③  Myoldjobsuitsmebetter.
④  Iliketofindahighly-paidjob.
【单选题】 --DidyourfathergotoAmerica?--No,hisdoctorsuggestedthathe_____there.
①  isgoing
②  notgo
③  didnotgo
④  tobegoing
【单选题】 Ienjoythemovieverymuch.IwishI_____thebookfromwhichitwasmade.
①  haveread
②  hadread
③  shouldhaveread
④  amreading