getString Function
Write a function named getstring that has a local char array of 80 elements. The function should ask the user to enter a sentence, and store the sentence in the array. Then the function should dynamically allocate a char array just large enough to hold the sentence, plus the null terminator. It should copy the sentence to the dynamically allocated array, and then return a pointer to the array. Demonstrate the function in a complete program.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.