Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ncar!noao!asuvax!nud!sunburn!gtx!randy From: randy@gtx.com (Randy D. Miller) Newsgroups: comp.lang.c Subject: question about shift operator Message-ID: <786@gtx.com> Date: 1 Nov 88 16:06:08 GMT Reply-To: randy@gtx.UUCP (Randy D. Miller) Distribution: na Organization: GTX Corporation, Phoenix, Arizona Lines: 13 I've seen conflicting information about the shift operator in cases where operand2 is exactly equal to the number of bits in the object. E.g., with a 32 bit int, what must the following do? int n; n <<= 32; K&R 1st ed. seems to indicate the operation is undefined, but does the proposed standard change this? -- Randy D. Miller (602) 870-1696 GTX Corp., 8836 N. 23rd Ave., Phoenix, AZ 85021 {cbosgd,decvax,hplabs,amdahl,nsc}!sun!sunburn!gtx!randy