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ストリングは、隠されたnul終端文字で終わる文字の並びです。その前に来る文字の数を返します——つまり strlen を自分で書くことになります。終端文字に達するまでインデックスを進めながら数えていきます。

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP