hi friend,
Its uses more, but here is a snippet for you,
you should understand that the single ampersand operator is normally used for a 'bitwise AND' operation:
For example;
(6 & 2) = 2
(10 & 5) = 0
(20 & 25) = 16
(123 & 20) = 16
final result is:
Compare the binary representations of each of those.
110 & 010 = 010
1010 & 0101 = 0000
10100 & 11001 = 10000
1111011 & 0010100 = 0010000
In each case, a digit is 1 in the result only when it is 1 on both the left AND right side of the input.
regards
sarva