Answers for "Count the number of letters in a word without using the strlen . function"

C
0

Count the number of letters in a word without using the strlen . function

#include <stdio.h>
#include<string.h>
int main(void) {
  int n,m,i,j,d;
  char tab1[n],tab2[n];
  d=0;
printf("enter the word :");
gets(tab1);
for(i=0;tab1[i]!='\0';i++)
 d++;

printf("%d",d);
  return 0;
}
Posted by: Guest on July-16-2021

Code answers related to "Count the number of letters in a word without using the strlen . function"

Code answers related to "C"

Browse Popular Code Answers by Language