Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!osu-cis!att!ihnp4!ihlpl!dritchey From: dritchey@ihlpl.ATT.COM (Ritchey) Newsgroups: comp.sys.ibm.pc Subject: Re: Bug list for Microsoft C Message-ID: <5909@ihlpl.ATT.COM> Date: 20 Jul 88 02:42:10 GMT References: <10807@iuvax.cs.indiana.edu> Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 39 in article <10807@iuvax.cs.indiana.edu>, bobmon@iuvax.cs.indiana.edu (RAMontante) says: ] seanf@sco.COM (Sean Fagan) writes: ] +iverson@cory.Berkeley.EDU.UUCP (Tim Iverson) writes: ] +>int i=1, j=33; ] +> ] +>main() { ] +> printf("%x\n", 1<<33); ] +> printf("%x\n", 1>>33); ] +> printf("%x\n", i< printf("%x\n", i>>j); ] +>} ] +Under Xenix '386, I get: 2, 0, 2, 0; using the '286 compiler, I get 0, 0, 2, ] +0. ] And Turbo C v1.5 gave me ] 0 ] 0 ] 0 ] 0 ] ] Something of a letdown, that. So what ARE the right numbers, and what is the ] right answer? Well, I can't swear that this is the final word, but on an Amdahl running UTS 5.2.6a (System V Release 2 + enhancements), the result was 0 0 0 0 I don't know if this is pure ANSI or K&R, but we use it for production here. Don -- Don Ritchey (312) 979-6179, AT&T Bell Laboratories, IH 2F-416 att!ihlpl!dritchey or dritchey@ihlpl.att.com {for smart mailers} --------------------------- Education is the process of casting false pearls before real swine. -- Irsin Edman