Question: Write two individual C programs for question 1 and 2. binary number defined as: int binNum[8]; 1. Defining bAnd, bin1, and bin2 as binary numbers

Write two individual C programs for question 1 and 2.

binary number defined as: int binNum[8];

1. Defining bAnd, bin1, and bin2 as binary numbers as above, write the void function

void binaryAnd(int bAnd[], const int bin1[], const int bin2[])

to compute bAnd as the AND of the two binary numbers bin1 and bin2. Do not output the binary number in the function. Test your function with 7,8 and 32, 255.

2. Write the void function for Problem 2 above renamed as binaryOr() using the OR operation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!