Menu

Incorrect Question 4 0 3 Pts Consider Following Partial Function Definition C Char Ctest I Q43854399

Incorrect Question 4 0/3 pts Consider the following partial function definition in C: char ctest(int a, int b) { char ti = a

Incorrect Question 4 0/3 pts Consider the following partial function definition in C: char ctest(int a, int b) { char ti = a – b; char t2 = U) – ) a; return tl + t2; The complete C code has been translated to this fragment of x86 assembly code (with comments): # %edi contains a, Sesi contains b cmpl %esi, Kedi # Compare a-b setge Xal # ti cmpl %edi, Sesi # Compare b-a setbe ci # t2 addb %al, %c1 # t2 += t1 movsbl %1, %eax # Convert type Fill in the blanks below with exact C code (with no extra spaces) to complete the function definition above so that it matches the x86 code. Note that the blanks are ordered in the C code from top to bottom, left to right. Blank 1: Blank 2: char Blank 3: Blank 4: char Show transcribed image text Incorrect Question 4 0/3 pts Consider the following partial function definition in C: char ctest(int a, int b) { char ti = a – b; char t2 = U) – ) a; return tl + t2; The complete C code has been translated to this fragment of x86 assembly code (with comments): # %edi contains a, Sesi contains b cmpl %esi, Kedi # Compare a-b setge Xal # ti cmpl %edi, Sesi # Compare b-a setbe ci # t2 addb %al, %c1 # t2 += t1 movsbl %1, %eax # Convert type Fill in the blanks below with exact C code (with no extra spaces) to complete the function definition above so that it matches the x86 code. Note that the blanks are ordered in the C code from top to bottom, left to right. Blank 1: Blank 2: char Blank 3: Blank 4: char

Expert Answer


Answer to Incorrect Question 4 0/3 pts Consider the following partial function definition in C: char ctest(int a, int b) { char ti…

OR