?
Consider the following recursive implementation used to reverse a string:
Consider the following recursive implementation used to reverse a string:
void recursive_reverse_string(char *s, int left, int right)
{
if(left < right)
{
char tmp = s[left];
s[left] = s[right];
s[right] = tmp;
_________;
}
}
Which of the following lines should be inserted to complete the above code?
void recursive_reverse_string(char *s, int left, int right)
{
if(left < right)
{
char tmp = s[left];
s[left] = s[right];
s[right] = tmp;
_________;
}
}
Join the Discussion
Login to post a comment or share your explanation.
Login