Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
![]() Passing data by value between C and C++ z/OS Language Environment Writing Interlanguage Communication Applications SA38-0684-00 |
|||||||||
In general, value parameters are passed and received by C++ in the same manner as under C; a non-pointer or reference variable is passed in the parameter list. Any change that happens to a value parameter in the called function does not affect the variable in the caller, as in the following example, where an integer is passed by value from C++ to C:
Similarly, to pass an int by value from C to C++:
![]() ![]() ![]() |
![]() |