17 lines
274 B
C
17 lines
274 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
uint f(const char s[]) {
|
|
uint i = 0;
|
|
while (1) {
|
|
if (s[i] == 0) {
|
|
return i;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
char s[] = "Hello World!";
|
|
printf("La taille de \"%s\" est %d\n", s, f(s));
|
|
} |