1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

排他的論理和(XOR)で比較して同じ時は、0を返して遊ぶ。

Posted at

いろいろ注意

  • arduinoの予定は、未定

プログラム

オンラインコンパイラpaiza



#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    
    int a = 46;
    int b = 46;
    
    int c = a ^ b;
    
    printf("%d xor %d = %d\n",a,b,c);
    
}





46 xor 46 = 0

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?