Feedback for subjective question

Report on solved past papers subjective question
Question 1:

Write a recursive function that takes three arguments (an integer array, starting subscript 's' and ending subscript 'e' ).

In first recursive call, the function should display the array from subscript 's' (s = 0) to 'e' (e = size of array). In each successive call, the function should print the array from index s+1 to e. T function should stop processing and return when starting subscript becomes equal to ending subscript.

For example, if user enters values for array 2, 3, 4, 5, 6 then the recursive function must display the following output.

2 3 4 5 6
3 4 5 6
4 5 6
5 6
6

Please login to submit feedback on subjective question.

Login Now

Account Related


Earnings Related


Funds Related


Live Related


Sponsored

Theme Customizer

Gaussian Texture



Gradient Background