home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!cass.ma02.bull.com!think.com!ames!network.ucsd.edu!munnari.oz.au!uniwa!DIALix!acix!johnv
- From: johnv@acix.DIALix.oz.au (John Verhoeven)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: What is wrong with this very simple c program?
- Message-ID: <johnv.03kr@acix.DIALix.oz.au>
- Date: 15 Nov 92 21:22:15 GMT
- References: <BxIpyB.E7@unx.sas.com>
- Organization: ACix - Private UUCP Node, Cloverdale, Western Australia.
- Lines: 20
- X-Newsreader: TIN [version 1.1 PL6]
-
- James Cooper (jamie@cdevil.unx.sas.com) wrote:
- > In article <1992Nov10.184406.25907@sol.UVic.CA>, aramsey@ugly.UVic.CA (Aaron Ramsey) writes:
- > >I wrote this as part of a larger program, and it keeps locking up my machine.
- > >When I run it, it prints "started....done...." then my machine either locks
-
- [ program deleted, was tramping over memory ]
-
- > C doesn't have any protection mechanism to see if you go outside the
- > boundaries of an array. You have to check for this yourself.
-
- 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 ?
-
- --
-
- John Verhoeven johnv@acix.DIALix.oz.au _--_|\
- Treasurer, Amiga Developers (ALT: johnv@DIALix.oz.au) / \
- Association of Western Australia Phone: (+619) 478 1406 *_.--._/
-