Question: Help me fix my C-code. The program is designed to take a given string, reverse it, and print it. Here is my main.c And here
Help me fix my C-code. The program is designed to take a given string, reverse it, and print it.
Here is my main.c

And here is my reverse.c. I used a Xor swap.

Currently, the program compiles with no errors. But when running, it prints the string forward, then reverse, and then runs into a segmentation fault but I can't figure out why. Help!

include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
