资源描述:
《Essential C (1).pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、EssentialCByNickParlanteCopyright1996-98,NickParlanteAbstractThisarticleexplainsthefeaturesoftheClanguage.Thecoverageisprettyquick,soitismostappropriateforsomeonewithsomeprogrammingbackgroundwhoneedstoseehowCworks.Topicsincludevariables,inttypes,floatingpointtypes,promotion,truncation,operators
2、,controlstructures(if,while,for),functions,valueparameters,referenceparameters,structs,pointers,arrays,thepre-processor,andthestandardClibraryfunctions.TableofContentsIntroduction.........................................................................................pg.2WhereCcamefrom,hatisitl
3、ike,whatotherresourcesmightyoulookat.Section1BasicTypesandOperators..........................................pg.3Integertypes,floatingpointtypes,assignmentoperator,comparisonoperators,arithmeticoperators,truncation,promotion.Section2ControlStructures.............................................
4、...........pg.11Ifstatement,conditionaloperator,switch,while,for,do-while,break,continue.Section3ComplexDataTypes.....................................................pg.15Structs,arrays,pointers,ampersandoperator(&),NULL,Cstrings,typedef.Section4Functions........................................
5、................................pg.24Functions,void,valueandreferenceparameters,const.Section5OddsandEnds..............................................................pg.29Main(),the.h/.cfileconvention,pre-processor,assert.Section6AdvancedArraysandPointers....................................pg.
6、32Howarraysandpointersinteract.The[]and+operatorswithpointers,baseaddress/offsetarithmetic,heapmemorymanagement,heaparrays.Section7OperatorsandStandardLibraryReference..............pg.40Asummaryreferenceofthemostcommonoperatorsandlibraryfunctions.PrefaceThisisthefinishedversionofthisdocumentaso
7、fNov3,1998.ThemostrecentversionofthisarticlewillalwaysbemaintainedatitsCSEducationLibraryURL.Feelfreetoreporterrorsandmakecommentstonick.parlante@cs.stanford.edu.CommentsorsuggestionsfortheCSEdu