Arm/maxu

From ASMBits

arm/minsPrevious

Write a function that returns the maximum value out of an array of 32-bit unsigned words.

The function has two parameters. The first parameter is the length of the array (at least 1). The second parameter is a pointer to the beginning of the array.

unsigned int max ( unsigned int length, unsigned int *array );


Sample Input

[1, 2, 3]

Sample Output

r0=3

Write your solution here

Upload a source file...