Question: 3. Given an integer X and a byte number n, write a function named getByte that returns the value of byte n within X. You

3. Given an integer X and a byte number n, write a function named getByte that returns the value of byte n within X. You may return the value as an int or a signed byte. Assume that byte O is the least significant byte and byte 3 is the most significant byte. For example, if the value of X is 0x88776655, the value of byte 0 would be 0x55 and the value of byte 3 would be 0x88
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
