D
digi.empire
trying to wrap my mind around these two exercises:
1. given an int (which is 16 bits in c), if the 16 bits are:
A15A14A13A12A11A10A9A8A7A6A5A4A3A2A1A0
it will output an int in whose 16 bits are:
A7A6A5A4A3A2A1A0A15A14A13A12A11A10A9A8
2. given an int(which is 16bits in c) if the 16 bits are:
A15A14A13A12A11A10A9A8A7A6A5A4A3A2A1A0
it will perform a cirular right shift 5 so that the new int's 16 bits
are:
A12A11A10A9A8A7A6A5A4A3A2A1A0A15A14A13
thanks in advanced.
1. given an int (which is 16 bits in c), if the 16 bits are:
A15A14A13A12A11A10A9A8A7A6A5A4A3A2A1A0
it will output an int in whose 16 bits are:
A7A6A5A4A3A2A1A0A15A14A13A12A11A10A9A8
2. given an int(which is 16bits in c) if the 16 bits are:
A15A14A13A12A11A10A9A8A7A6A5A4A3A2A1A0
it will perform a cirular right shift 5 so that the new int's 16 bits
are:
A12A11A10A9A8A7A6A5A4A3A2A1A0A15A14A13
thanks in advanced.