number of element in array c library function code example
Example: c number of elements in array
int my_strlen(char *str) {
int i = -1;
while (str && str[++i]);
return (i);
}
int my_strlen(char *str) {
int i = -1;
while (str && str[++i]);
return (i);
}