Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!tgr!lcc.niket@LOCUS.UCLA.EDU From: lcc.niket@LOCUS.UCLA.EDU (Niket K. Patwardhan) Newsgroups: net.lang.c Subject: how has C bitten you? Message-ID: <302@brl-tgr.ARPA> Date: Tue, 30-Jul-85 14:25:14 EDT Article-I.D.: brl-tgr.302 Posted: Tue Jul 30 14:25:14 1985 Date-Received: Thu, 1-Aug-85 05:01:06 EDT Sender: news@brl-tgr.ARPA Lines: 9 Andrew: Regarding int i,a[10]; for(i=0; i<=10; i++) a[i] = 0; you should have expected some problems, as you are writing one past the end of the array! The correct test to use is < not <=!