Write program that reads an integer array until -1 is entered. It asks the user to enter starting and ending subscript of the array (index number). The main will call a recursive function that takes an integer array, a starting subscript and an ending subscript as arguments, and returns the largest element of the array.

please i need the solution asap!!

Recommended Answers

All 2 Replies

As noted in prior posts, you have to show some effort. All members here don't write code for other folk's homework assignment.

What @rproffitt said. Also, do you know what a recursive function is?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.