Question: Write a C program which dynamically allocates an array of 5 strings (20 characters long), reads from the user and prints these strings in reverse

Write a C program which dynamically allocates an array of 5 strings (20 characters long), reads from the user and prints these strings in reverse on screen. Your program must properly free all allocated space before terminating.
Sample Run
Enter word #1: apple
Enter word #2: maple
Enter word #3: saddle
Enter word #4: tuple
Enter word #5: nobel
elppa
elpam
elddas
elput
lebon
Write a C program which dynamically allocates an array of 5 strings (20 characters long), reads from the user and prints these strings in reverse on screen. Your program must properly free all allocated space before terminating Sample Run Enter word #1: apple Enter word #2 : maple Enter word #3 : saddle Enter word #4: tuple Enter word #5: nobel elppa elpam elddas elput lebon
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
