Section 3. Chapitre 8
single
Challenge: Calculating String Length
Glissez pour afficher le menu
Tâche
Swipe to start coding
Practice calculating the length of a string in C by implementing a function that counts characters until the null-terminator is reached.
- The function must return the number of characters in the string before the null-terminator.
- The function must work for empty strings as well as non-empty strings.
- The function must not use any standard library string functions.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 8
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion