Xref: utzoo comp.lang.c:11399 comp.sys.ibm.pc:17296 Path: utzoo!attcan!uunet!sco!seanf From: seanf@sco.COM (Sean Fagan) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: Bug list for Microsoft C Message-ID: <372@scolex> Date: 19 Jul 88 01:46:36 GMT References: <4516@pasteur.Berkeley.Edu> Organization: The Santa Cruz Operation, Inc. Lines: 25 In article <4516@pasteur.Berkeley.Edu> 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); >} >What results do you get? (This might even be interesting on non 86 machines; >oh boy, I just checked a non 86, and it failed too.) Under Xenix '386, I get: 2, 0, 2, 0; using the '286 compiler, I get 0, 0, 2, 0. So, anybody, what does ANSI say (in plain English)? I tried reading the draft to see what it should be, and I couldn't make head nor tail of it... Somebody said, earlier, that both K&R and ANSI say the results are implementation defined, but, from what I could stand of the draft, it didn't seem to say that. >Mike Stump, Cal State Univ, Northridge Comp Sci Department >aeusemrs@csuna.csun.edu ---------------- Sean Eric Fagan seanf@sco