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.
私は3番目の変数で行うことができます
c=a|b; a=c&a; b=c&a;
しかし、私は3番目の変数なしでそれを行う必要があります. XOR を使用してみましたが、それも役に立ちませんでした。
1年生のプログラミングクラスの簡単な質問です:
a = a^b; b = a^b; a = a^b;