Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: what is this supposed to do? Message-ID: <1991Apr23.003314.5194@zoo.toronto.edu> Date: Tue, 23 Apr 1991 00:33:14 GMT References: <1991Apr22.225641.1122@midway.uchicago.edu> Organization: U of Toronto Zoology In article <1991Apr22.225641.1122@midway.uchicago.edu> langer@control.uchicago.edu (Steve Langer) writes: >What is the expected output from the following program? Is it defined? > printf("1 << 32 = %o\n", ((unsigned) 1) << 32); Assuming you're on a 32-bit machine, no, it is undefined. Translation, expect different machines to do different things, some of them unpleasant. -- And the bean-counter replied, | Henry Spencer @ U of Toronto Zoology "beans are more important". | henry@zoo.toronto.edu utzoo!henry