home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!apple!decwrl!contessa!mwm
- From: mwm@contessa.palo-alto.ca.us (Mike Meyer)
- Subject: Re: What is wrong with this very simple c program?
- Newsgroups: comp.sys.amiga.programmer
- Distribution: world
- References: <BxIpyB.E7@unx.sas.com> <johnv.03kr@acix.DIALix.oz.au> <BxtBKL.LGI@unx.sas.com>
- X-NewsSoftware: Amiga Yarn 3.4, 1992/08/12 15:49:52
- Keywords:
- Summary:
- Message-ID: <mwm.2onl@contessa.palo-alto.ca.us>
- Date: 17 Nov 92 13:36:51 PST
- Organization: Missionaria Phonibalonica
- Lines: 16
-
- In <BxtBKL.LGI@unx.sas.com>, walker@twix.unx.sas.com (Doug Walker) wrote:
- >
- > In article <johnv.03kr@acix.DIALix.oz.au>, johnv@acix.DIALix.oz.au (John Verhoeven) writes:
- > |> Whats even more fun :-) is that in some compilers accessing arrays with
- > |> a negative subscript is also legal, eg foo[-1] = 5.
- > |>
- > |> Does SAS C V6 allow this ?
- >
- > Yes, it's part of the standard and all ANSI-compliant compilers
- > allow it.
-
- I believe SAS C is polite enough to warn you when it notices such a
- thing (I know it does if you go off the other end of an array).
- However, it's a warning, so you can turn it off if you really want to.
-
- <mike
-