What are differnt with bitwise operators and arithmetic operators?

Printable View

- 12-27-2006Whiteghostbitwise and arithmetic Operators
What are differnt with bitwise operators and arithmetic operators?

- 12-27-2006ssharish2005
If u could have a look at FAQ a clear explanation is given. Just a brief note

Code:`<< -> left shift operator is similar to multiple by 2`

>> -> right shift operator is similar to divide by 2

- 12-28-2006dwks
<< and >> aren't the only bitwise operators, though. There's !, &, |, and ^, and maybe some I can't remember at the moment.

http://www.cprogramming.com/tutorial...operators.html - 12-28-2006zx-1
'!' is logical; you meant '~', of course.

- 12-28-2006dwks
Oops. Of course. :)