How to reverse a string using a recursive function, without
swapping or using an extra memory?
Answer Posted / asdf
void reverse_string(char *string) {
if (*str) {
reverse_string(++str);
str--;
printf("%c",*str);
}
| Is This Answer Correct ? | 2 Yes | 14 No |
Post New Answer View All Answers
What are the types of data structures in c?
What is structure data type in c?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What does != Mean in c?
What is else if ladder?
What are near, far and huge pointers?
How can I make it pause before closing the program output window?
What is structure padding and packing in c?
What is wild pointer in c?
develop algorithms to add polynomials (i) in one variable
Why is %d used in c?
What is the acronym for ansi?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Why c is called top down?
Are pointers really faster than arrays?