- 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
您可能关注的文档
最近下载
- 经济林碳计量与监测技术指南.pdf VIP
- 《生态公益林碳汇计量监测技术规程》.pdf VIP
- DB21_T 4242-2025 岫岩翠玉 鉴定.docx VIP
- DB21_T 4239-2025 地理标志产品 九龙川香菇.docx VIP
- 一位董事長的成长之路.doc VIP
- A公司员工培训问题及对策研究.docx VIP
- S08 Arbitrage in the Government Bond Market外文电子书籍.PDF VIP
- CECS19-1990 混凝土排水管道工程闭气检验标准.docx VIP
- 五年级上册阅读理解技巧和方法完整版及练习题含解析.doc VIP
- A公司员工培训问题及对策研究 .doc VIP
原创力文档

文档评论(0)