menu
home
Home
search
Search
people
About Us
exit_to_app
Login
home
Home
search
Search
people
About Us
exit_to_app
Login
Practicing for String Reversal - Recursion of Algorithms
Questions 1 of 10
Q. Consider the following iterative implementation used to reverse a string:
#include< stdio.h >
#include< string.h >
void reverse_string(char *s){
int len = strlen(s);
int i,j;
i=0;
j=len-1;
while(______) {
char tmp = s[i];
s[i] = s[j];
s[j] = tmp;
i++;
j--;
}
}
Which of the following lines should be inserted to complete the above code?
i > j
i < len
j > 0
i < j
Submit
lock
Login
person
Signup
Email
Password
Name
Email
Password
Confirm Password