Main 1. Create a header file named "w0901.h" that defines a void function named Shifter() whose header is void Shifter (
Posted: Sat May 14, 2022 7:51 pm
Main 1. Create a header file named "w0901.h" that defines a void function named Shifter() whose header is void Shifter (bool A[], bool B[], int n) Given that n represents the size of both A and B, the function performs a right arithmetic shift of A and B were A represent the most significant bits. For instance, after the caller Shifter ([true,false, true], [false, true,false),3), the values of the first and second array arguments will be [true, true, false) and (true,false, true) respectively. Test 2. Create a cpp file named main.cpp that calls Shifter(). Before and after the call, display the content of the arrays used in the caller.