I got the gist of the project, but it seems as if I am missing something simple. Basically, I am trying to reverse a set a characters that a user input. Now I built the program using pointers. the *head is suppose to point at the beginning of the string and *tail points at the end (not the '\0'). I originally wasn't getting any output after compiling, but after making some changes and realize that I can get rid of the 2nd string I had and use one, but increment the head and decrement the tail and output the tail. So then I made a temp variable so that it can start the switching. Now after compiling, all I get is m (i am testing the word 'murder') Could someone tell me where I am going wrong with my code:
Thanks for the help. I figured the assigning the temporary variable. After an hour it started to reverse, but would only output the one letter. So I kept re adjusting and it works. Thanks!