To reverse a string using a recursive function, without swapping or using an extra memory.
To reverse a string using a recursive function, without swapping or using an extra memory.
No one is going to do work for you.
Do it yourself, or at least try.
Post your attempt and what you don't get, etc. and we'll help.
Well since function calls use memory what you want isn't possible.
I think he means without declaring another variable or array to store it in.
"Knowledge is proud that she knows so much; Wisdom is humble that she knows no more."
-- Cowper
Operating Systems=Slackware Linux 9.1,Windows 98/Xp
Compilers=gcc 3.2.3, Visual C++ 6.0, DevC++(Mingw)
You may teach a person from now until doom's day, but that person will only know what he learns himself.
Now I know what doesn't work.
A problem is understood by solving it, not by pondering it.
For a bit of humor check out xkcd web comic http://xkcd.com/235/
Well, if you're not going to create another array to store the results in, I don't see how you can reverse a string without swapping elements.
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.
What he meant and what he said are possiblity two very different things. But lets say we forget about the return address, you still have parameters that are variables so you can pass anything into it with creating more variables.Originally Posted by manofsteel972
Why doesn't anyone use the board search function? Reversing a string is posted all the time.
Quzah.
Hope is the first step on the road to disappointment.
I didnt find reversing a string on the boards using recursion. That seems like a good practise for recursion though. I think i will try it.
Well then you're an idiot.Originally Posted by Cowboy
Using the following keywords: reverse string recursion
Quzah.
Hope is the first step on the road to disappointment.
hmmm...yeah the search works a lot better...
but allow me to show my disapproval of your people skills right there...burn in hell bastard
You must have missed the smiley. You're allowed to say anything as long as you smile.
You also missed the part where I just don't care.
Quzah.
Hope is the first step on the road to disappointment.
i didnt agree to those termsOriginally Posted by quzah
thats because it wasnt in your post...so why don't you show me that you don't care by not replying to thisOriginally Posted by quzah
Don't worry, your not the only one to be on the wrong end of the "Wrath of Quzah". And you are getting off relatively unscathed compared to others.
Perhaps if you got him a rain coat, he'd be nice.
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.
>>And you are getting off relatively unscathed compared to others.
Much to the dismay of the audience Too bad, quzah must've been in a good mood today.
>>Perhaps if you got him a rain coat, he'd be nice.
A raincoat?...
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.