write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
Answer Posted / valli
void reverse(char s[],int len)
{
putchar(s[len]);
len--;
if(len>=0)
reverse(s,len);
return;
}
Is This Answer Correct ? | 49 Yes | 33 No |
Post New Answer View All Answers
What Is The Difference Between Null And Void Pointer?
Explain the use of 'auto' keyword
#include
What is d scanf?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is restrict keyword in c?
Explain what is a static function?
Did c have any year 2000 problems?
What is signed and unsigned?
What are variables c?
Explain what is #line used for?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What do you mean by invalid pointer arithmetic?
Differentiate between #include<...> and #include '...'
What standard functions are available to manipulate strings?