y=x<<1
it will shift left the value
& make x=0100 but how can i store that shifted value... in other variable...?
Uh... you say: y = x << 1 right? So what do you think 'y' is? Holy cow it's another variable! So you already stored in another variable. problem solved kthxbye! :icon_wink:
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
there are many registers available in the compiler into which you can store directly your numbers.
ajay.krish123
Junior Poster in Training
90 posts since Nov 2008
Reputation Points: 6
Solved Threads: 9
@nitu: Do you know how to use any other bit-operators?
@ajay: I believe you mean, computer. Regs are for brief usage, not storage.
MosaicFuneral
Posting Virtuoso
1,691 posts since Nov 2008
Reputation Points: 888
Solved Threads: 116