I'm trying to get better at C++ (I know a little). I'm working on character arrays. I found an exercise where the objective is to reverse a character array (after I ...
If the char array is of a known length then you don't need recursion for it as it can be solved with a trivial loop over half the items performing swaps as you go. That would make the hint stupid, as you don't need (or bennefit from) recursion. If however the length is unknown then I'm going to suggest that this ...
I am a newbie and havent read pointers yet. This programme breaks in the function when it is supposed to reverse the characters.e-g "four" --> "ruof" Herre is what i did. I created another array of same size to copy the contents of first array and was thinking of for loop going from the length of character to the zero subscript ...