Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: net.lang.c Subject: how has C bitten you? Message-ID: <4051@alice.UUCP> Date: Thu, 25-Jul-85 20:36:41 EDT Article-I.D.: alice.4051 Posted: Thu Jul 25 20:36:41 1985 Date-Received: Sat, 27-Jul-85 02:05:33 EDT Organization: Bell Labs, Murray Hill Lines: 20 I am collecting examples of how C can bite the unwary user. Consider, for example, the following program fragment: int i, a[10]; for (i = 0; i <= 10; i++) a[i] = 0; On many implementations, this will result in an infinite loop. If you have any good examples, and you don't mind my re-publishing them (with attribution), send them along! Andrew Koenig AT&T Bell Laboratories 600 Mountain Avenue Murray Hill NJ 07974 research!ark (or alice!ark)