Menu
Coddy logo textTech

Sorted Word

Lesson 18 of 20 in Coddy's Beginner Challenges - Practice Basic Concepts course.

challenge icon

Challenge

Medium

Write 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