Write a C function that implements a 3-bit mux, following the pattern I showed in class. Remember: &&, || and ! are used to represent the logic gates. For testing, your program should behave as follows:
three control bits: 1 1 0
eight inputs: 0 0 0 0 0 0 1 0
answer: 1
The user types control bits 110, or 6, and the program returns
the 6th input - which is the only 1.
I am NOT asking for the code. I just am confused what it wants me to do. I was not able to attend this class. How does it get 1 as the 6th input. looks like the 6th input is 0 and the 7th is 1.
I am not really familiar with mux. Any help would be greatly appreciated.