Skip to content

Palindrome

Palindrome

Return 1 if a C-string reads the same in both directions, otherwise 0 — in C there's no bool by default, so we use the integers 1 and 0. Compare characters from the two ends moving inward.

Log in or create account

IGCSE & A-Level