acao Posted March 6, 2013 at 09:31 PM Report #498212 Posted March 6, 2013 at 09:31 PM Agradecia ajuda na resolução deste exercício. int x=2 int y=3 int a=x&y começando a resolver manualmente, 2:2=1/ 0 1:2=0 /1 binário (de 2)=10 3:2=1/ 1 1:2=0/ 1 binário (de 3)=11 Assim, int a= 10&11 que é equivalente a (1&1)(0&1) que é igual a 10(binário) Como é que eu faço a passagem de (1&1)(0&1) =10(binário) ?
HappyHippyHippo Posted March 6, 2013 at 09:40 PM Report #498215 Posted March 6, 2013 at 09:40 PM tens de saber as tabelas de verdade : op(e) op(ou) a b | a&b a b | a|b --------- --------- 0 0 | 0 0 0 | 0 0 1 | 0 0 1 | 1 1 0 | 0 1 0 | 1 1 1 | 1 1 1 | 1 IRC : sim, é algo que ainda existe >> #p@p Portugol Plus
acao Posted March 6, 2013 at 09:48 PM Author Report #498220 Posted March 6, 2013 at 09:48 PM já consegui obrigado @HappyHippyHippo cumps acao
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now