On Sun, 26 Mar 2023 21:34:23 -0400, Steve Smith wrote:
>My C is rusty... I need to review pointer/address-of syntax. The idea for
>the 3rd argument was to show one "passed by reference"; in any case
>modifiable by the subroutine.
>
>But where did x and y come from?
>
Maybe he meant i and j.
On Sun, 26 Mar 2023 19:35:59 -0400, Steve Smith wrote:
>
(corrected to):
void foo(int i, int j , int *k)
{
*k = i + j;
};
>sas
>
>On Sun, Mar 26, 2023 at 7:53 PM Frank Swarbrick wrote:
>
>> Also, "*k = x + y".
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN