Explain the difference between "call by value" and "call by reference" in a programming language.How do these apply to the C language?
人气:141 ℃ 时间:2019-12-20 16:59:36
解答
按值传递参数:参数的值会被复制一份,在被调用函数内对参数做的赋值操作对调用函数来说是不可见的.
按引用传递,在C语言中一般以指针参数体现.对指针指向区域所作的修改对调用函数是可见的.
推荐
- Explain the difference between a procedure call and a procedure declaration,and give an example.
- 程序设计 call by value ,call by address ,call by name
- it tells the difference between making a call in chinese and one in english?
- In about 200 words, explain the difference between language translation and language localization.
- Explain the difference in meaning between Sentences a) and b)
- B两点的坐标分别为(4,1)和(-2,4),直线AB与x轴的交点为P,且向量AP=λ向量PB,则λ=
- 小学低年级古诗阅读鉴赏
- 诸子百家 收徒弟当老师的又不是 孔子一个人,为什么孔子被尊为万世师表?
猜你喜欢