Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Which of following is true about the reverse _ string function used in solving the problem of reversing a string? string reverse _ substring (
Which of following is true about the reversestring function used in solving the problem of reversing a string?
string reversesubstringstring str int start, int end
if start end
return str;
char ch strstart;
strstart strend;
strend ch;
return reversesubstringstr start end ;
string reversestringstring str
return reversesubstringstr strlength;
Question options:
The reversestring function is a recursive function.
The reversestring function is an iterative function.
The reversestring function uses reversesubstring as a helper function.
The reversesubstring function uses reversestring as a helper function.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started