reversing words in a string in c
问题 I have homework assignment: to write a function that reverse a string, and then write a function that reverses words in a string, using the first function. So if the input is: "have a nice day", the output will be: "day nice a have". I cannot understand why my code isn't working - I keep getting segmentation fault. The first function (reverse) works just fine. The problem is with the second one. I really need your help... Thank you in advance. #include <stdio.h> #include <string.h> #include