i'm writing some codes for a coming exams and stuck with a strange question. in the question i'm asked to write 2 function as follows in the attached file.. and under the given limitations in the second file.
i will start by saying that i can't use pointers at all.
what i don't know how to do:
1. space code- move each space one chars right. and in order ti revers the process we need to move each space chars left. how do i do that ?
2. i didn't understand all the cleaning input thing... i have no idea.
3. as well as for how to remove all spaces at the beginning and the end of a sentsnce.
4. at the middle of sentence, the number os spaces needs to be reduced to one.