What does the & operator in c++ do (as opposed to the && operator?)
Printable View
What does the & operator in c++ do (as opposed to the && operator?)
There are two different uses for the & operator. It is a bitwise and as well as the reference operator.
Is it in a piece of code that you are confused over or something?
The '&' operator is used the following way:
return (13 & 4);
OR LATER:
return (13 & 8);
Refer to this thread:
http://www.cprogramming.com/cboard/s...&threadid=8562