Skip to content · ⁨본문 바로가기⁩

Palindrome

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.

한국어

판다롬

C 문자열이 앞뒤로 읽었을 때 같으면 1을, 그렇지 않으면 0을 반환합니다. C에는 기본적으로 bool이 없으므로 integers 1과 0을 사용합니다. 양쪽 끝에서 시작하여 안쪽으로 움직이면서 문자를 비교합니다.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP