Shift by negative quantity

Andrew Koenig ark at alice.UucP
Sun Jul 6 01:46:43 AEST 1986


> 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."



More information about the Comp.lang.c mailing list