Menu
Coddy logo textTech

String reverser

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

challenge icon

Challenge

Easy

Write a function named reverse that gets a string as input and returns the string reversed.

Try it yourself

#include <string.h>
#include <stdlib.h>

char* reverse(char* s) {
    // Write code here
}

All lessons in Beginner Challenges - Practice Basic Concepts