Question: Please answer 3 question a PoBlem 1. (10 points): uliple choice Write your answer for casch ng table 10 1. What is the output of
Please answer 3 question a PoBlem 1. (10 points): uliple choice Write your answer for casch ng table 10 1. What is the output of the following code? Assume that int is 32 bits, short is 16 bits, and the representation is two's complement. unsigned int x = OxDEADBEEF; unsigned short y0xFFFF signed int z--1 if (x > (signed short) y) printf ("Hello") if (x > z) printf ("World"); (a) Prints nothing. (b) Prints "Hello" (c) Prints "World (d) Prints "Hello World" 2.1) mov (%rax, %rax, 5), %rax 2) lea (%rax, %rax, 5), trax Which of the above accomplishes the following: %rax-: 6 * %eax? (a) Neither 1 nor 2. (b) Only 1. (c) Only 2. (d) Both 1 and 2 3. The x86-64 instruction test is best described as which of the following: (a) Same as sub. (b) Same as sub, but doesn't keep the result (only sets flags). (c) Same as and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
