What are differnt with bitwise operators and arithmetic operators?
Printable View
What are differnt with bitwise operators and arithmetic operators?
If u could have a look at FAQ a clear explanation is given. Just a brief note
ssharish2005Code:<< -> left shift operator is similar to multiple by 2
>> -> right shift operator is similar to divide by 2
<< 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
'!' is logical; you meant '~', of course.
Oops. Of course. :)