C question
Ken Montgomery
kjm at ut-ngp.UUCP
Wed Apr 17 01:22:49 AEST 1985
[]
From: lspirkov at udenva.UUCP (Goldilocks)
>In article <> jack at boring.UUCP (Jack Jansen) writes:
>>
>>procedure p(var i:integer):integer;
^^^
>>begin
>> p := i;
>> i := i+1;
>>end (* p *);
>>
>
>you obviously don't know your pascal! a function returns
>something. a procedure doesn't.
>
> Goldi
The 'var' keyword has the effect that the value of 'i' is assigned
to the corresponding actual parameter in the calling routine at the
termination of the called routine.
--
The above viewpoints are mine. They are unrelated to
those of anyone else, including my cats and my employer.
Ken Montgomery "Shredder-of-hapless-smurfs"
...!{ihnp4,allegra,seismo!ut-sally}!ut-ngp!kjm [Usenet, when working]
kjm at ut-ngp.ARPA [for Arpanauts only]
More information about the Comp.lang.c
mailing list