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: Re: Shift by negative quantity Message-ID: <5753@alice.uUCp> Date: Sat, 5-Jul-86 11:46:43 EDT Article-I.D.: alice.5753 Posted: Sat Jul 5 11:46:43 1986 Date-Received: Sun, 6-Jul-86 01:05:22 EDT References: <894@bu-cs.UUCP> Organization: Bell Labs, Murray Hill Lines: 7 > Question: Is shifting by a negative quantity defined (that is, > probably means the other shift.) I could find no mention in K&R. You apparently didn't look on page 189, where it says: "The result is undefined if the right operand is negative, or greater than or equal to the length of the object in bits."