home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15873 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.3 KB

  1. Path: sparky!uunet!know!cass.ma02.bull.com!think.com!ames!network.ucsd.edu!munnari.oz.au!uniwa!DIALix!acix!johnv
  2. From: johnv@acix.DIALix.oz.au (John Verhoeven)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: What is wrong with this very simple c program?
  5. Message-ID: <johnv.03kr@acix.DIALix.oz.au>
  6. Date: 15 Nov 92 21:22:15 GMT
  7. References: <BxIpyB.E7@unx.sas.com>
  8. Organization: ACix - Private UUCP Node, Cloverdale, Western Australia.
  9. Lines: 20
  10. X-Newsreader: TIN [version 1.1 PL6]
  11.  
  12. James Cooper (jamie@cdevil.unx.sas.com) wrote:
  13. > In article <1992Nov10.184406.25907@sol.UVic.CA>, aramsey@ugly.UVic.CA (Aaron  Ramsey) writes:
  14. > >I wrote this as part of a larger program, and it keeps locking up my machine.
  15. > >When I run it, it prints "started....done...." then my machine either locks
  16.  
  17. [ program deleted, was tramping over memory ]
  18.  
  19. > C doesn't have any protection mechanism to see if you go outside the
  20. > boundaries of an array.  You have to check for this yourself.
  21.  
  22. Whats even more fun :-) is that in some compilers accessing arrays with
  23. a negative subscript is also legal, eg foo[-1] = 5.
  24.  
  25. Does SAS C V6 allow this ?
  26.  
  27. --
  28.  
  29. John Verhoeven                        johnv@acix.DIALix.oz.au      _--_|\
  30. Treasurer, Amiga Developers           (ALT: johnv@DIALix.oz.au)   /      \
  31. Association of Western Australia      Phone: (+619) 478 1406      *_.--._/
  32.