Posted: Wed Dec 28, 2005 3:58 pm Post subject: left shift
can someone tell me what is the advantage of using << (left shift) by 1 rather than multyplying by 2? Maybe it had something to do with interpreter?
For example:
code:
int n = 1;
int m = 1;
n = n<<1; //n becomes 2
m = m*2; //m becomes 2
thnx
Sponsor Sponsor
Tony
Posted: Wed Dec 28, 2005 4:33 pm Post subject: (No subject)