Jump to content
DinoAlmeida

Bitwise

Recommended Posts

DinoAlmeida

Boa Noite!

Eu já percebi as tabelas do AND, do OR  e do XOR mas não estou a conseguir entender umas formulas que encontrei:

0&B=0    1&B=B

0|B=0      1|B=1

0^B=B     1^B=~B

Alguém sabe como interpretar isto? Eu sou muito principiante na matéria. 

Share this post


Link to post
Share on other sites
Rui Carlos

Pegando no primeiro exemplo, 0&1=00&0=0, o que quer dizer que 0&B=0, seja qual for o valor de B.

Podes efectuar um raciocínio semelhante para as outras fórmulas.

Contudo, parece-me que tens aí um erro nessas fórmulas: 0|1=1 e 0|0=0, logo 0|B=B.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.