首页 | 本学科首页   官方微博 | 高级检索  
     检索      

对C语言函数参数传递的探讨——以交换问题为例
引用本文:宋美英.对C语言函数参数传递的探讨——以交换问题为例[J].通化师范学院学报,2013(4):32-34.
作者姓名:宋美英
作者单位:吕梁学院离石师范分校,山西吕梁033000
摘    要:该文讨论了C语言函数中参数传递的方法.C语言是通过函数来实现模块化程序设计的,通过函数调用来实现一定的功能.调用有参函数时,在主调函数和被调函数之间有数据传递.无论是值传递还是地址传递,参数间的数据传递都是单向的,只能由实参传递给形参.

关 键 词:函数调用  单向传递  值传递  地址传递

Discussion on C Language Function Parameter Passing——Taking Exchange Problems as Example
SONG Mei-ying.Discussion on C Language Function Parameter Passing——Taking Exchange Problems as Example[J].Journal of Tonghua Teachers College,2013(4):32-34.
Authors:SONG Mei-ying
Institution:SONG Mei-ying(Lishi Normal Campus,Lvliang College,Lvliang,Shanxi 033000,China)
Abstract:The paper discusses the C language function parameter passing.C language function implements modular programming to achieve a certain function by function calls.When calling function with parameters,there is data transfer between the calling function and the called function.Whether it is passed by value and passed by address,the data transfer between the parameters are one-way,and passed only from the actual parameters to the formal parameter.
Keywords:function call  one-way transfer  value passing  address passing
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号