Question: Consider the following C function on a 32-bit processor int fun1(unsigned int word) { return (int) ((word < < 24) >> 24); } What hex
Consider the following C function on a 32-bit processor
int fun1(unsigned int word) {
return (int) ((word << 24) >> 24);
}
What hex value does this function return when word = 0xDEADBEEF?
| A. | 0xDEAD | |
| B. | 0x000000EF | |
| C. | 0xBEEF | |
| D. | 0xDE000000 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
