(20 分) 五、试以两个资料交换之副程式为例,说明C 程式语言如何利用以 值呼叫 ( called by value )参数传递方法来达成以址呼叫(called by reference or called by address)之效果。
基于16个网页-相关网页
建模器应当既不考虑数据的位置、是值呼叫还是引用呼叫语义,也不考虑任何并发管理工具。
Modelers should make no assumptions about the location of the data, call-by-value or call-by-reference semantics, nor any implicit concurrency management facilities.
但是,如果该程序呼叫其他程序,区域变数在受呼叫程序执行时将保留它们的值。
However, if that procedure calls other procedures, the local variables retain their values while the called procedures are running.
这能让程序变更呼叫程序码中引数的基础值。
This permits the procedure to change the value underlying the argument in the calling code.
应用推荐