English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

A, B and C are 8 bit no's. They are as follows:
A -> 1 1 0 0 0 1 0 1
B -> 0 0 1 1 0 0 1 1
C -> 0 0 1 1 1 0 1 0 ( - =minus, u=union)
Find ((A - C) u B) =?

2006-12-01 18:28:50 · 3 answers · asked by ramya b 1 in Science & Mathematics Mathematics

3 answers

A - C = 11000101 - 00111010 = 10001011
(A - C) U B = 10001011 U 00110011 = 10111011

2006-12-01 18:54:49 · answer #1 · answered by wild_turkey_willie 5 · 0 0

First of all, A-C has no meaning unless you know whether we are dealing with ones-compliment or twos-compliment or even signed numbers. The difference is how they represent negatives. So in your case, since the most significant digit is 1, it's a negative number. But which negative number depends on the number system you are using.

On the other hand, I haven't heard of taking union of 2 numbers. I heard of union of 2 boolean values. Extending that idea, I suppose union of 2 numbers means taking the union of each pair of 2 bit values?

2006-12-01 18:52:07 · answer #2 · answered by carbigpow 3 · 0 0

(A-B) = 10010010 (binary)

Assuming (A-B) U C is equivalent to (A-B) OR C
Answer is 10111010

otherwise how can u define a set operation on a number?

2006-12-01 18:51:58 · answer #3 · answered by Pavan 2 · 0 0

fedest.com, questions and answers