C/C++ Arena

Step 6 of 6

Challenge: palindromes

A palindrome reads the same forwards and backwards, like level or racecar.

Your turn: write int is_palindrome(const char s[]) returning 1 or 0. Compare characters from both ends moving inward, like reversing an array.

Previous: Characters are numbers