Home » Non Verbal Reasoning » Analytical Reasoning

What does this symbol mean '&'?

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.

  • Bitwise AND compares each bit of two numbers and returns a new number with bits set to 1 only if both bits were 1.
  • For example: 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.

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion