Question: C array - max - main.c #include Task 2 : The Maximum of an Array The second task is to write the function: ( WRITE
C arraymaxmain.c
#include Task : The Maximum of an Array
The second task is to write the function: WRITE IN ASSEMBLY x NOT IN C
unsigned long arraymaxunsigned long n unsigned long items
This function will return the maximum value of an array of long integers The first argument provided is
the number of elements, the second argument is the address of the first element.
You do not need to write a C version of this function, but we recommend doing so
We have provided the driver program in arraymaxmain.c which processes the command line arguments
and calls the arraymax function. The Makefile will compile both arraymaxmain.c and your implementa
tion of the arraymax function to produce the executable arraymax. Once compiled, the interactions with
arraymax should look as follows:
$ arraymax
$ arraymax
$ arraymax
Your program must compile without any modification to the provided arraymaxmain.c file, using
the provided Makefile. The command make arraymax will combine arraymaxmain.c provided by us
and arraymax.s written by you into the executable arraymax.qfgdvbh
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
