节点文献

C语言函数参数传递过程教学方法研究

Teaching Method Research of Function Parameters Transfer Process of C Programming Language

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 黄炜张伟

【Author】 HUNG Wei1,ZHANG Wei2(1.Department of Computer and Information Engineering,Changsha Aeronautical Vocational and Technical College,Changsha 410014,China; 2.College of Information Science and Engineering,Central South University,Changsha 410075,China)

【机构】 长沙航空职业技术学院计算机系中南大学信息科学与工程学院

【摘要】 函数及其调用过程中的参数传递规律一直是C语言教学中的重点和难点,针对很多教材中给出的实参向形参传递过程的值传递及地址传递规律,从分析变量、常量等基本概念的本质出发,阐释了栈结构在函数参数传递过程中的作用,证实了"值传递"是函数唯一的参数传递方式,而不存在所谓的"地址传递"方式的结论,并通过指针、数组、结构体类型实参到形参的传递过程,进一步说明了C函数的参数传递过程受到参数数据类型制约的特点。

【Abstract】 The function and parameters transfer rules in the called procedure of function is always the key and difficult points of C programming language teaching process.According to the value and address transfer law in the process which translated the real parameters into the formal parameters in some given textbooks,the role of stack data structure was illustrated in the function parameters transfer process bases on the nature analysis of variables and constants,and confirmed the conclusion which the value transfer rule is the only way of C function parameters,but does not exist the so-call address transfer rule.The features constrained by data type of C function parameters transfer process is further illustrated through the parameters transfer process which translated the real parameters owned a pointer,array,structure data type to the formal parameters.

【基金】 湖南省教育科学“十二五”规划课题(项目编号:XJK011CXJ011);湖南省教育厅课题(项目编号:11C0010)
  • 【文献出处】 电脑与信息技术 ,Computer and Information Technology , 编辑部邮箱 ,2013年01期
  • 【分类号】TP312.1-4;G712
  • 【被引频次】3
  • 【下载频次】110
节点文献中: 

本文链接的文献网络图示:

本文的引文网络