Skip to content · ⁨Passer au contenu⁩

String length · ⁨Longueur de chaîne⁩

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.

Français

Longueur de chaîne

Une chaîne C est une rangée de caractères se terminant par un terminateur nul caché. Retournez combien de caractères précèdent celui-ci — basically écrire strlen vous-même. Parcourez un index vers l'avant jusqu'à atteindre le terminateur, en comptant au passage.

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP