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