C:按值或参考调用 [英] C : Call by value or reference

查看:49
本文介绍了C:按值或参考调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C是按照值约定调用还是按引用调用?

i看到C标准中没有任何类似引用但引用的是




仍然,上述问题的答案应该是什么?

Does C follow call by value convention or call by reference?
i see that there is nothing like reference in C standard but it is
referenced.

still, what should be the answer for the above question?

推荐答案

文章< 11 **********************@g4g2000hsf.googlegroups。 com>,

Nehil< ne *********** @ gmail.comwrote:
In article <11**********************@g4g2000hsf.googlegroups. com>,
Nehil <ne***********@gmail.comwrote:

> C遵循值约定或按引用调用?

i看到C标准中没有任何类似引用但是引用它。

仍然应该是什么是上述问题的答案?
>Does C follow call by value convention or call by reference?
i see that there is nothing like reference in C standard but it is
referenced.

still, what should be the answer for the above question?



你是否相同Nehil谁正在为C(*)写一个垃圾收集器?
?如果是这样,你有没有听过

的建议走路之前走路?


(*)毫无疑问,下周,火星登陆程序。

Are you the same "Nehil" who is undertaking to write
a garbage collector for C (*)? If so, have you ever heard the
advice "Walk before you run?"

(*) And, no doubt, next week, the Mars lander program.


7月15日下午6点,凝视...... @ xmission.xmission.com(Kenny McCormack)

写道:
On Jul 15, 6:00 pm, gaze...@xmission.xmission.com (Kenny McCormack)
wrote:

文章< 1184504183.456641.240 ... @ g4g2000hsf.googlegroups。 com>,


Nehil< nehilparas ... @ gmail.comwrote:
In article <1184504183.456641.240...@g4g2000hsf.googlegroups. com>,

Nehil <nehilparas...@gmail.comwrote:

C是否按照值约定进行调用或者通过引用来打电话?

i看到C标准中没有任何类似的引用,但它引用了


Does C follow call by value convention or call by reference?
i see that there is nothing like reference in C standard but it is
referenced.


仍然,上述问题应该是什么答案?
still, what should be the answer for the above question?



你是否相同Nehil谁正在为C(*)写一个垃圾收集器?
?如果是这样,你有没有听过

的建议走路之前走路?


(*)毫无疑问,下周,火星登陆程序。


Are you the same "Nehil" who is undertaking to write
a garbage collector for C (*)? If so, have you ever heard the
advice "Walk before you run?"

(*) And, no doubt, next week, the Mars lander program.



你改变了自己的名字或者和Eric Sosman一样吗?

好​​了,如果我想学习很多辩论的新概念怎么办? 。现在垃圾收集器几乎完成了一个低级别的项目。

并且

我所询问的所有事情都只是以某种方式与这个项目有关。

所以,如果你知道答案,PLZ会做出适当回复。


Nehil说:
Nehil said:

C是按值约定调用还是按引用调用?
Does C follow call by value convention or call by reference?



C是一种100%的按值调用语言。函数参数是表达式,

不是对象。评估这些表达式,并将这些值传递给函数。


-

Richard Heathfield< http: //www.cpax.org.uk>

电子邮件:-www。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日

C is a 100% call-by-value language. Function arguments are expressions,
not objects. These expressions are evaluated, and those values are
passed to the function.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999


这篇关于C:按值或参考调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆