Explain the difference between "call by value" and "call by reference" in a programming language.How do these apply to t

Explain the difference between "call by value" and "call by reference" in a programming language.How do these apply to the C language?
英语人气:795 ℃时间:2019-12-20 16:59:36
优质解答
按值传递参数:参数的值会被复制一份,在被调用函数内对参数做的赋值操作对调用函数来说是不可见的.
按引用传递,在C语言中一般以指针参数体现.对指针指向区域所作的修改对调用函数是可见的.
我来回答
类似推荐
请使用1024x768 IE6.0或更高版本浏览器浏览本站点,以保证最佳阅读效果。本页提供作业小助手,一起搜作业以及作业好帮手最新版!
版权所有 CopyRight © 2012-2024 作业小助手 All Rights Reserved. 手机版