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

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

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!