Share
Explore BrainMass

Logic and Bit Operations(C++)

Hi
Would you help abut this Homework?
Thank you

Use a computational program (C++) you have written to do the following exercises.

Given two bit strings of length n (n equal or bigger 16), find the bitwise AND, bitwise

XOR of these strings.

Example:

01 1011 0110
11 0001 1101
---------------
11 1011 1111 (Bit wise OR)
01 0001 0100 (Bitwise AND)
10 1010 1011 (Bitwise XOR)

$2.19