IN C++ PLEASE You will be reading two \"binary arrays\" of the same size (from 1
ID: 3725477 • Letter: I
Question
IN C++ PLEASE
You will be reading two "binary arrays" of the same size (from 1 to 50) as two char array containing only 1’s and 0’s. For instance, a user input will be given as:
Write a program that performs the BIT-WISE (1 bit at a time) AND and OR operation between the two binary strings:
AND: when both characters are 1's then the result is 1, otherwise 0
OR: when any of the two characters is a 1 then the result is 1, otherwise 0
You must output the result of both operations in the following format:
where the first string is the result for the AND and the second for the OR (add a newline after each output string)
Requirements
-Read the user input (two strings)
-Compute the two operations
-Output the result in the format mentioned above
#include <stdio.h>
int main() {
/* Type your code here. */
return 0;
}