Avsnitt 3. Kapitel 8
single
Challenge: Calculating String Length
Svep för att visa menyn
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 8
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal