Path: utzoo!utgpu!attcan!uunet!husc6!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: question about shift operator Message-ID: <8840@smoke.BRL.MIL> Date: 10 Nov 88 00:52:01 GMT References: <786@gtx.com> <192@libove.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Distribution: na Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <192@libove.UUCP> root@libove.UUCP (Jay M. Libove) writes: >Now, why is there any question as to the result? Rewrite the example as int n, s; s = 32; /* ... */ n << s; Now tell us what machine instructions will be generated for "n << s". Then look up the behavior of those instructions when s==32.