Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!rutgers!mcdchg!motmpl!ron From: ron@motmpl.UUCP (Ron Widell) Newsgroups: comp.lang.c Subject: Re: variable number of strings passed to function - how? Message-ID: <1056@motmpl.UUCP> Date: 30 Oct 88 05:47:02 GMT Article-I.D.: motmpl.1056 References: <434@tutor.UUCP> <3533@ihuxz.ATT.COM> <787@ubu.warwick.UUCP> Reply-To: ron@motmpl.UUCP (Ron Widell) Organization: Motorola Semiconductor, Minneapolis, MN Lines: 28 In article <787@ubu.warwick.UUCP> alfie@warwick.UUCP (Nick Holloway) writes: [An otherwise good example of argument evaluation ordering] =Demonstration 2: = test (a,b) int a,b; = { printf ( "&a=%u\n&b=%u\n", (unsigned)&a, (unsigned)&b ); } = main () { test ( 1, 2 );} = =On the sun3, the output was: (args at increasing addresses) = &a=251657624 = &b=251657628 =On the sun4: (args at decreasing addresses) ^^^^^^^^^^ Huh ? = &a=4160748428 = &b=4160748432 I'm not sure what you mean here. It appears to me that the address of b is higher than that of a, just like the sun3 (it's certainly a larger number ;-)). =JANET : alfie@uk.ac.warwick.cs | `O O' |16 Queens Rd| /: : :-- : :-- =UUCP : ..!mcvax!ukc!warwick!alfie |// ^ \\|Hertford | / : : : : : =BITNET: alfie%uk.ac.warwick.cs@ukacrl --------|Herts | /--: : :- : :- =ARPA : alfie%cs.warwick.ac.uk@cunyvm.cuny.edu|England |/ : :__ : : :__ -- Ron Widell, Field Applications Eng. |UUCP: motmpl!ron Motorola Semiconductor Products, Inc., |Voice:(612)941-6800 9600 W. 76th St., Suite G | If they *knew* what I was saying, Eden Prairie, Mn. 55344 -3718 | do you think they'd let me say it?