Pointers to Constants
Henry Spencer
henry at utzoo.uucp
Mon Jan 1 16:17:21 AEST 1990
In article <21337 at unix.cis.pitt.edu> rothen at unix.cis.pittsburgh.edu (Seth B Rothenberg) writes:
>The only possible thing I thought of is
> CALL FUNCT1( X + 5, Y + 2) ---> {t[0]=x+5; t[1]=y+2; funct1(t, t+1) }
> where t is declared int t[10];
>But this is ugly...
This really is about what you have to do. (Don't forget to suppress the
use of the temporary when the thing being passed is addressable.) Fortran
does this for you invisibly; C doesn't.
--
1972: Saturn V #15 flight-ready| Henry Spencer at U of Toronto Zoology
1989: birds nesting in engines | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.lang.c
mailing list