Question: Part C. String Manipulation: Reverse. 1. Write a function called reverseStr that accepts as a parameter a char array (or char pointer) and returns a

 Part C. String Manipulation: Reverse. 1. Write a function called reverseStr

Part C. String Manipulation: Reverse. 1. Write a function called reverseStr that accepts as a parameter a char array (or char pointer) and returns a void type. The function reverses the contents of the array (or string) being passed. Example: the string "Hello" will be reversed to olleH". You have to be careful about the 10' symbol to keep it at the end of the array and watch out for odd and even length of strings 2. Test your function and display the string (array) before and after it is reversed IMPORTANT: The function does NOT print the string in reverse; it actually reverses it in the memory Part D. String Tokenization 1. Write a function called parseSentence that takes as input parameter a null (i.e '\0 ") terminated string line, where line would contain an English sentence 2. Assume that the delimiters are space, comma, semicolon and period 3. The function extracts each word from the sentence (without any punctuation or spacing) and then prints one word per line 4. The function returns a void type For example char str "hello world, how are you today."; parseSentence (str); would print the following List ofWords: hello world how are you today Part E. String Sorting 1. Write a function called sortWords that takes as input parameter a null (i.e.'0') terminated string line, where line would contain an English sentence 2. Assume that the delimiters are space, comma, semicolon and period 3. The function extracts each word from the sentence (without any punctuation or spacing) and then prints them after sorting 4. The function returns a void type

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!