16 lines
420 B
Plaintext
16 lines
420 B
Plaintext
Assignment name : max
|
|
Expected files : max.c
|
|
Allowed functions:
|
|
--------------------------------------------------------------------------------
|
|
|
|
Write the following function:
|
|
|
|
int max(int* tab, unsigned int len);
|
|
|
|
The first parameter is an array of int, the second is the number of elements in
|
|
the array.
|
|
|
|
The function returns the largest number found in the array.
|
|
|
|
If the array is empty, the function returns 0.
|