0
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?

ビットの計算について

Posted at

ビット演算
基本的なビット演算
演算 記号 計算ルール 例
論理積(AND) & 両方が1のときだけ1 1010 & 1100 → 1000
論理和(OR) 少なくとも1つが1なら1 1010 1100 → 1110
排他的論理和(XOR) ^ 異なるときだけ1 1010 ^ 1100 → 0110
否定(NOT) ~ すべてのビットを反転 ~1010 → 0101

0
0
0

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
0
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?