0

& = Check both statements. && = Check one statement.

I understand the use of the ampersand as an operand but I have no idea how or why it would be used in a print statement.

Take Java for example:

System.out.println(10 & 7);

This outputs 2. Why does this output 2?

undefined
  • 469
  • 2
  • 10
  • 23

0 Answers0