On Wed, Mar 14, 2001 at 05:42:05PM -0600, Jason DeStefano wrote:
> #include <stdio.h>
> main() {
> int x;
> fscanf(stdin, "%d", &x);
> return (x << 4);
> }
[ bayazid ~/test/bitshift-001 ] echo 1 | ./a.out
[ bayazid ~/test/bitshift-001 ] echo $?
16
[ bayazid ~/test/bitshift-001 ] echo 333 | ./a.out
[ bayazid ~/test/bitshift-001 ] echo $?
208
[ bayazid ~/test/bitshift-001 ]
Nice try. Too bad I want to bit-shift values greater than 64...