String length
이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
문자열 길이
A C-string is a row of characters that ends with a hidden null terminator. Return how many characters come before it — basically writing strlen yourself. Walk an index forward until you reach the terminator, counting as you go.
난이도 3/5 · 200코인 + 오늘 첫 완료 시 작은 보너스 추가
Complete int str_len(const char *s) to return the length of the C-string s, without using strlen. Count characters until the null terminator.
출력을 보려면 '실행'을 클릭하세요.