Sektion 3. Kapitel 8
single
Challenge: Calculating String Length
Stryg for at vise menuen
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 8
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat