Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.PCS 1/10/84; site ahuta.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ahuta!rkl From: rkl@ahuta.UUCP (k.laux) Newsgroups: net.lang.c Subject: Re: Quiz for Novice to Intermediate C Users Message-ID: <630@ahuta.UUCP> Date: Mon, 22-Apr-85 16:03:38 EST Article-I.D.: ahuta.630 Posted: Mon Apr 22 16:03:38 1985 Date-Received: Tue, 23-Apr-85 06:36:02 EST References: <717@mako.UUCP> Organization: AT&T Information Systems Labs, Holmdel NJ Lines: 21 REFERENCES: <717@mako.UUCP> I believe you'll find that 1) int a, b, *p = &a; and 2) int a, b, *p; p = &a; ARE equivalent. I took the code exactly as offered from the net and cc'd it with no problems. You will find that in either case the compiler generates code to load the address of 'a' and store it in 'p'. 1) is more compact, 2) is more explicit. R. Kevin Laux Software Vendor Tech Support ATTIS Lincroft ahuta!rkl (soon to be mtuxo!rkl) 201-576-3610