Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int max(int num1, int num2)
- {
- if(num1 > num2)
- return num1;
- return num2;
- }
- int r_find_max(int *item, int length)
- {
- if(0 == length)
- return *item;
- return max(*item, r_find_max(item + 1, length - 1));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement