Write a C program to create memory for text string at run time using malloc() function, text string will be inputted by the user and displayed. Using free() function we will release the occupied memory. (using Dynamic Memory Allocation). code example
Example: c++ program to input and print text using Dynamic Memory Allocation.loop
program to input and print text using Dynamic Memory Allocation.