Programming Challenge B
write a simple program that takes as input 2 16-bit strings of 0's and 1's. (For example one string is assigned X and on string is assigned Y). Compute and and display the bitwise AND, bitwise OR, and bitwise XOR of the two string, (For example, the resultant string is Z). You may use the programming language of your choice. Alternatively, if you do not know a programming language, you may describe your algorithm in plain text or pseudocode.
The above is a python program that takes X and Y as input and prints their bitwise OR, AND and XOR results.
Get Answers For Free
Most questions answered within 1 hours.