Docsity

Recursive Functions to Handle Arrays and Find Minimum Value, Lecture notes of Computer Programming

Partial preview of the text

Download Recursive Functions to Handle Arrays and Find Minimum Value and more Lecture notes Computer Programming in PDF only on Docsity!

Question 1 Print an array

Write a recurisive function printArray that takes an array and the size of the array as arguments and return nothing. The function should stop processing and return when is receives an array of size zero.

Question 2 Find the minimum value in an array

Write a recurisive function recursiveMinimum that takes an integer array and the array size as arguments and return the smallest element of the array. The function should stop processing and return when it receives an array of 1 element.