Sorted Word
Lesson 18 of 20 in Coddy's Beginner Challenges - Practice Basic Concepts course.
Challenge
MediumWrite a function named sortString that gets a word (string) and returns the word with it's letters sorted alphabetically.
Example,
sort('hello')->ehllo
Try it yourself
char* sortString(char* s) {
// Write code here
}All lessons in Beginner Challenges - Practice Basic Concepts
Practice on your own: Online C compiler