Skip to content · ⁨Saltar al contenido⁩

Palindrome · ⁨Palíndromo⁩

English

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.

Español

Palíndromo

Devuelve 1 si una cadena C se lee igual en ambos sentidos, de lo contrario 0 — en C no hay un tipo bool por defecto, por lo que utilizamos los enteros 1 y 0. Compara los caracteres desde los extremos moviéndose hacia el interior.

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP