a9628657
asked on
help ( urgent)
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".
Cheers.
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".
Cheers.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.