Reverse string function

I'm unsure of where to start with this:

Write a function void reverse(char str[]) that reverses the string inside of the character array str
closed account (48T7M4Gy)
First, write a program to input a string.
How would this look when complete then?
if you can use standard library algorithms then the answer from juanchopanza below might help:
https://stackoverflow.com/questions/19712903/reverse-contents-in-array
or you can google for any number of ways to reverse elements of an array
closed account (48T7M4Gy)
How would this look when complete then?

It would look like you had started instead of it looking like someone else did your homework for you.

Once you input a string the next step is to tackle the problem of reversing it which is a couple of extra lines if you treat the string as an array of characters.
Topic archived. No new replies allowed.