Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
& = 両方のステートメントをチェックします。 && = 1 つのステートメントをチェックします。
アンパサンドをオペランドとして使用することは理解していますが、print ステートメントで使用する方法や理由がわかりません。
Java を例にとります。
System.out.println(10 & 7);
これは 2 を出力します。なぜこれは 2 を出力するのですか?