C语言(双语)复习资料.pdfVIP

  • 1
  • 0
  • 约1.76万字
  • 约 9页
  • 2026-02-15 发布于河北
  • 举报

C涪言双(语)复习资料2(013)

第1章C语言基础

1.int,char,float,doubleareallbasicdatatypesinClanguage.(对)

2.Providedthatthelengthofintis16bits,thenthevaluescopeofunsignedint

is:(B)

A.~255B.^65535C.-32768^32767D.-256~255

3.Thedeclarationis:

intk=,a=,b=;

unsignedlongw=5;

doublex=l.42,y=;

thentheincorrectexpressionisA__

A.y=x%3B.w+=-2C.x=w+5D.k*=a+b

4.InC,basicdatatypesareint,char,floatanddouble.

u

5.Supposedeclaration:chara=c;thenstatement:printf(%d\a);iswrong.(错)

6.Supposedeclaration:

inta;

floatx,y;

(hentheresultdatatypeofexpression:

x+a%3*(int)(x+y)%2/4isfloat.

7.Thedatatypeofexpression:18/4*sqrt(4.)isfloat.(错)

8.Supposedeclaration:chara;thenexpression:ch=5+9iscorrect.(错)

9.Incorrectstringconstantis:(A)

A.abcB.“1212”C.“D.“”

1.IfRateisasymbolconstant,wecanuseitasRatc++.(错)

11.Asvariablename,tmpvarandTmpVararesame.(to)

12.Keywordscanbeusedasvariablenames.(错)

13.Thefirstcharacterofvariablenamemustbealetteroraunderscore(_).(对)

14.Whichofthefollowingiserror?(A)

A.Keywordscanbeusedasvariablenames.

B.Wetendtouseshortnamesforl

文档评论(0)

1亿VIP精品文档

相关文档