Please help i am a fresher in c
I want to create a program which takes the names from the user and arranges them in ascending and descending order like for eg
1st output
Sam
Tortoise
and 2nd output
Tortoise
Sam
Since S comes before T
Also the code should be written in function and not main
main should only call the function