U
U
Umid2017-01-07 02:03:45
Informatics
Umid, 2017-01-07 02:03:45

Boolean operations on numbers?

What is the value of A = not ( 33 or 57 ), where A is an 8 bit variable?
I get 6 in the answer, but there is no such answer.
What I did:
1) converted both numbers to the binary system - 1) 33= 100001 2) 57= 111001.
Then, as far as I guessed, I applied the log. operation or and it turned out 111001.
Then I applied the not operation and got 000110. Converted
to decimal system and got the number 6.
What is done wrong? What didn't you learn?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2017-01-07
@DarCKoder

Eight-bit variable, dude!
NOT (00100001 OR 00111001) = 11000110

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question