Difficulty: Medium
Correct Answer: Bitwise AND operator
Explanation:
The symbol &
in programming languages like C and C++ is primarily used as the bitwise AND operator.
5 & 3
results in 1
because:5 = 101
3 = 011
& = 001 → 1
Note: In C/C++, the &
symbol is also used as the "address-of" operator in certain contexts, but unless specified otherwise, the standard meaning is bitwise AND.
Discussion & Comments