Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!hplabs!otter!pdc From: pdc@otter.hple.hp.com (Damian Cugley) Newsgroups: comp.lang.c Subject: Re: "Numerical Recipes in C" is nonportable code Message-ID: <1670013@otter.hple.hp.com> Date: 30 Aug 88 20:18:02 GMT References: <5162@hoptoad.uucp> Organization: Hewlett-Packard Laboratories, Bristol, UK. Lines: 14 ... if you want to index an array starting at one, but int b[4], *bb = &b[-1]; and variations thereof are interdit, why not use int bb[5]; Before I am flamed to death for wasting *four* *whole* *bytes* of memory, I think I can claim excemption under the `speed-vs-space' banner. Using a pointer as an array probably involves an extra instruction or CPU cycle somewheres - and `#define bb(x) (b[(x)-1])' does countless `invisible' subtractions... pdc