摘要
该文讨论了C语言函数中参数传递的方法.C语言是通过函数来实现模块化程序设计的,通过函数调用来实现一定的功能.调用有参函数时,在主调函数和被调函数之间有数据传递.无论是值传递还是地址传递,参数间的数据传递都是单向的,只能由实参传递给形参.
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.
出处
《通化师范学院学报》
2013年第4期32-34,共3页
Journal of Tonghua Normal University
关键词
函数调用
单向传递
值传递
地址传递
function call
one-way transfer
value passing
address passing