0
Q:

c number of elements in array

int my_strlen(char *str) {
  int i = -1;
  
  while (str && str[++i]);
  return (i);
}
2

New to Communities?

Join the community