Kuk
23 de marzo de 2015, 17:01
Amigos, información útil:
BY REFERENCE passes the address of an item
BY VALUE passes the value of the item directly.
Therefore, as with the BY CONTENT specification, the BY VALUE
specification does not cause the content of the parameter to be changed in the
calling program, even when the content of the corresponding parameter in the called
program is changed.
Note that the coding in the called C program varies depending
on whether it receives an address or a value.
Remarks: If the BY specification is omitted, BY REFERENCE is assumed.
BY REFERENCE passes the address of an item
BY VALUE passes the value of the item directly.
Therefore, as with the BY CONTENT specification, the BY VALUE
specification does not cause the content of the parameter to be changed in the
calling program, even when the content of the corresponding parameter in the called
program is changed.
Note that the coding in the called C program varies depending
on whether it receives an address or a value.
Remarks: If the BY specification is omitted, BY REFERENCE is assumed.