Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Pointers to Constants Message-ID: <1990Jan1.051721.29388@utzoo.uucp> Organization: U of Toronto Zoology References: <21337@unix.cis.pitt.edu> Date: Mon, 1 Jan 90 05:17:21 GMT In article <21337@unix.cis.pitt.edu> rothen@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@zoo.toronto.edu