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

String length · ⁨문자열 길이⁩

English

String length

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.

한국어

문자열 길이

C 문자열은 숨겨진 null 종결자(null terminator)로 끝나는 문자들의 줄입니다. 그 앞에 오는 문자의 개수를 반환합니다—실제로 strlen을 직접 작성하는 것입니다. 인덱스를 앞으로 이동하여 종결자에 도달할 때까지边走边计数.

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

IGCSE, A-Level & AP