View Single Post
Contributor
17Apr2011,23:03  
teacher's Avatar
this method does not work if you have logic one at msb
for eg
Code: cpp
// before: binary equivalent 10000000
uint_8 t = 128;
t<<1;
// after: decimal equivalent : 0
// after: binary equivalent 00000000