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 היא שורת תווים שמסתיימת במסיין אפס נסתר. החזר כמה תווים מגיעים לפניו — בעצם כתיבת strlen עצמך. עבור עם מדד קדימה עד שתגיע למסיין, ובספור בזמן שאתה הולך.

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP