question about shift operator

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Nov 10 10:52:01 AEST 1988


In article <192 at libove.UUCP> root at 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.



More information about the Comp.lang.c mailing list