How to reverse a string using a recursive function, without
swapping or using an extra memory?
Answer Posted / mahendra aseri
Using recursive Function:
void rev_str(char *str)
{
if(*str!=NULL)
rev_str(str+1);
printf("%c",str);
}
Is This Answer Correct ? | 20 Yes | 43 No |
Post New Answer View All Answers
how to write optimum code to divide a 50 digit number with a 25 digit number??
Is c is a high level language?
Why array is used in c?
Write a program to print all permutations of a given string.
Explain the use of 'auto' keyword
How do you define CONSTANT in C?
What are the 32 keywords in c?
What is the function of multilevel pointer in c?
Why main is not a keyword in c?
a c code by using memory allocation for add ,multiply of sprase matrixes
What are external variables in c?
Is there sort function in c?
Whats s or c mean?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?