SHOW WORK AND EXPLAIN! 0x401050 <main>: push %ebp 0x401051 <main+1>: mov %esp,%e
ID: 3540547 • Letter: S
Question
SHOW WORK AND EXPLAIN!
0x401050 <main>: push %ebp
0x401051 <main+1>: mov %esp,%ebp
0x401053 <main+3>: sub $0x8,%esp
0x401056 <main+6>: and $0xfffffff0,%esp
0x401059 <main+9>: mov $0x0,%eax
0x40105e <main+14>: mov %eax,0xfffffffc(%ebp)
0x401061 <main+17>: mov 0xfffffffc(%ebp),%eax
0x401064 <main+20>: call 0x4013a0 <_alloca>
0x401069 <main+25>: call 0x401430 <__main>
0x40106e <main+30>: mov $0x0,%edx
0x401073 <main+35>: add 0x8(%ebp),%edx
0x401076 <main+38>: mov %edx,%eax
0x401078 <main+40>: leave
0x401079 <main+41>: ret
This code returns the following value from main (in register eax):
Question 9 options:
1)
product of the command line arguments
2)
sum of the command line arguments
3)
number of characters in the command line arguments
4)
how many command line arguments were provided
1)
product of the command line arguments
2)
sum of the command line arguments
3)
number of characters in the command line arguments
4)
how many command line arguments were provided
Explanation / Answer
1)Product= 64
2)Sum=16
3)no of characters: 4
4) No of arguments= 2
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.