write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
Answer Posted / sampath
void reverse(*str)
{
if(*str)
{
reverse(str+1);
putchar(*str);
}
}
| Is This Answer Correct ? | 58 Yes | 51 No |
Post New Answer View All Answers
How do I use strcmp?
why we wont use '&' sing in aceesing the string using scanf
What is the right way to use errno?
How do you list files in a directory?
What is an operator?
Why is sprintf unsafe?
What is LINKED LIST? How can you access the last element in a linked list?
What is multidimensional arrays
How can a program be made to print the name of a source file where an error occurs?
what is ur strangth & weekness
What is sizeof array?
Explain what is the most efficient way to store flag values?
Are enumerations really portable?
What are the back slash character constants or escape sequence charactersavailable in c?
Why can’t we compare structures?