Quote:
|
Originally Posted by Mike Soukup
Not true. In almost every instance & and && can not be used for the same purpose. The only time they are guaranteed to return the same result is if the two operands are bits.
Absolutely not true again. They have different meanings. They translate into different machine instructions. They give the same result only for very limited scope.
What everyone is saying is analogous to saying that since 2*2 is equal to 4, and 2 + 2 is also equal to 4, the two operands can both be used to the same end. Just because an operation equates to the same number once does not mean they are the same.
|
And what you are saying is that what we are saying is that they are the same. This is absolutely not true. No one in this thread stated that they are the same.
Your example is not quite what I had in mind, however, imagine it in base 2.