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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!