One of hundreds of answers available with our premium content service.
A: This example code gets a char array from the input string and loops through it to populate a second char array. The for loop uses two variables, i is incremented and j is decremented at each pass. The output array could be used to create a new string or output directly, as in this case.
… full answer hidden
Premium members click below for full answer
How can I reverse the characters in a string?