What will be the result of the expression 5 & 3 in C++?

  • 0
  • 1
  • 15
  • 8
In C++, the '&' operator is a bitwise AND operator. When you perform a bitwise AND operation between 5 and 3 (binary 101 & 011), you get 001, which is decimal 1.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *