home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15790 < prev    next >
Encoding:
Text File  |  1992-11-13  |  859 b   |  21 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!wupost!udel!rochester!rit!isc-newsserver!ritvax.isc.rit.edu!JMS1086
  3. From: jms1086@ritvax.isc.rit.edu
  4. Subject: Re: What is wrong with this very simple c program?
  5. Message-ID: <1992Nov13.065843.8544@ultb.isc.rit.edu>
  6. Sender: news@ultb.isc.rit.edu (USENET News System)
  7. Nntp-Posting-Host: vaxc.isc.rit.edu
  8. Reply-To: jms1086@ritvax.isc.rit.edu
  9. Organization: Rochester Institute of Technology
  10. References: <1992Nov10.184406.25907@sol.UVic.CA>
  11. Date: Fri, 13 Nov 1992 06:58:43 GMT
  12. Lines: 7
  13.  
  14. Its because when you use counter as the index for zoop... You are increasing
  15. counter by +5 everytime, then using that to index zoop... So you
  16. are sticking numbers in zoop[0], then zoop[5],zoop[10].....
  17. skipping 1,2,3,4,6,7,8,9.... So when you get to counter = 1005 (the
  18. 201st iteration) the prg dies.....
  19.  
  20.                         -John...
  21.