Palindrome
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
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을 사용합니다. 양쪽 끝에서 시작하여 안쪽으로 움직이면서 문자를 비교합니다.
Complete int is_palindrome(const char *s) to return 1 if s reads the same forwards and backwards, otherwise 0.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.