My Professor said I should look over a couple problems in the book so that I could gain some understanding of strings. We have just briefly touched on them, and we don't have to write any program using them, but I thought I would post these programs here to see if anyone would be willing to explain how to do them. Like I said, these are not "homework" problems, but rather "practice" problems that he said would be good to know (for the final perhaps?). Anyways, here they are if anyone can help me with them:
Write a function that accepts a string (a point to a character) and deletes the last character by moving the null character one position to the left.
Write a function that accepts a string (a pointer to a character) and deletes all the trailing spaces at the end of the string.
I haven't had much time to look over the chapter, and as I said we only touched on strings in class, so I'm not too educated about them yet.
TIA for any help.