Hi
Whenever we do the shift operation (left or right) how can we know
that the shift operation is an arithmetic or logical shift operation?
Can someone tell me about any url where I can get examples on bit operations
thanks & regards
Onebrother
Hi
Whenever we do the shift operation (left or right) how can we know
that the shift operation is an arithmetic or logical shift operation?
Can someone tell me about any url where I can get examples on bit operations
thanks & regards
Onebrother
> Can someone tell me about any url where I can get examples on bit operations
http://www.cprogramming.com/tutorial...operators.html -- On this very site.
And here is http://en.wikipedia.org/wiki/Logical_shift wiki with special note about C
as a conclusion - do not use bitshifting on signed numbers to avoid undefined behaviours
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler