Question: In this assignment you will transform that program into a function with the following prototype bool xor(bool a, bool b) As in your original program,
In this assignment you will transform that program into a function with the following prototype bool xor(bool a, bool b) As in your original program, xor returns the exclusive or of a and b. Then write a program that calls xor for all four possible combinations of a and b( false-false, false- true, etc) The output of that program is a table with three columns a, b, and xor, appropriately labeled and the results of all four combinations listed:
a b xor(a,b)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
