All I want to do is ask the user to enter words, then I bubble sort them alphabetically, then print them back out. THE PROBLEM IS.. When I try to store "str" into the words array, idk what's happening... When I print them out, it's only saving the LAST word I typed into every array location..
If I do that, then none of my other stuff works... I don't understand why it's so hard to save a string into an array.. C is very difficult compared to other languages...
All I want to do is ask the user to enter strings 1 line at a time, and have them saved in an array.
Then sort the strings alphabetically in the array.
Then print it.
That's all!!.. I have the sorting working, I just don't have the storing the strings from the user into the array!
You have the same problem with 'hold'. Once you fix that problem with 'words' and 'hold', your program works just fine for me.
I don't understand why it's so hard to save a string into an array
If you were using strings, you wouldn't be having the problem. But you're not using strings, you're using pointers. Remember that pointers are not strings. A char* is not a string, it's a pointer.
The confusion here seems to be coming from a misunderstanding of how pointers work.
C is very difficult compared to other languages
I don't disagree.
I have the sorting working
You actually don't, because your sorting is incorrectly using pointers instead of strings.