C语言函数参数传递过程教学方法研讨.pdf

  1. 1、本文档共4页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第21卷第 1期 电 脑 与 信 息 技 术 V01.2lNo.1 2013年 2月 Comouterand Information Technoloav Feb.2013 文章编号:1005—1228(2013)叭一0066—04 C语言函数参数传递过程教学方法研究 黄 炜 ,张 伟 (1.长沙航空职业技术学院计算机 系,长沙 410014;2中南大学信息科学与工程学院,长沙 410075) 摘 要:函数及其调用过程中的参数传递规律一直是c语言教学中的重点和难点,针对很多教材中给出的实参向形参传 递过程的值传递及地址传递规律 ,从分析变量、常量等基本概念的本质出发,阐释了栈结构在函数参数传递过程中的作 用,证实了“值传递”是函数唯一的参数传递方式,而不存在所谓的 “地址传递”方式的结论,并通过指针、数组、结构体类型 实参到形参的传递过程,进一步说明了c函数的参数传递过程受到参数数据类型制约的特点。 关键词:c语言,函数参数传递,教学方法 中图分类号:G433 文献标识码:A TeachingMethodResearchofFunctionParametersTransferProcess ofCProgrammingLanguage HUNG W ei.ZHANG W e (1.DepartmentofComputerandInformationEngineering,ChangshaAeronauticalVocationalandTechnicalCollege,Changsha410014,China; 2.CollegeofInfomrationScienceandEngineering,CentralSouthUnive~ity,Changsha410075,China) Abstract:Thefunctionandparameterstransferrulesinthecalledprocedureof~ncdon isalwaysthekeyanddifficultpoints ofC programminglanguageteachingprocess.Accordingto thevalueandaddresstransferlaw intheprocesswhichtranslated therealparametersintotheformalparameters in somegiventextbooks,theroleofstack datastructurewasillustratedinthe functionparameterstransferprocessbasesOrlthenautrenaalysisofvariablesandconstants,andconfirmedtheconclusionwhich thevaluetransferurleistheonlyway ofC functionparameters ,butdoesnotexisttheSO—calladdresstransferrule.The featuresconstrainedbydatatypeofC ufnctionparameters rtansferprocessisfurtherillustratedthroughtheparameters transfer processwhichtranslatedtherealparameters ownedapointer,array,sturcturedataytpetotheofmr alparameters. Keywords:Cprorgamminglanugage;transferprocessoffunctionparameters;teachingmethod 《c语言程序设计》是计算机及信息类相关专业的

文档评论(0)

带头大哥 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档