I have written the following program that allows the user to enter a set of numbers and then store them in an array.
My next step is to take each number and perform some shift operation on it.
My first question is :
How can I store the number in a 16 bit word length inside the computer.
Second question :
If for example the first element in the array is 6 which is 0000000000000110 in binary ( 16 bit word length ), how can I mask it so that I can store bits 3 to 6 as a number "in this case it is 0".