top of page
Wave
Cactus%20Plant_edited.jpg

STRING LENGTH

#include<stdio.h>
int strlen1(char *a)
{
    int i=0;
    while(a[i]!='\0')
    i++;
    return i;
}
int main()
{
    char a[100];
    int i;
    printf("Enter the string: ");
    gets(a);
    i=strlen1(a);
    printf("\nThe string lenth is %d\n",i);
    return 1;
}

Subscribe Form

Thanks for submitting!

  • Facebook
  • YouTube
  • Instagram
  • Twitter

©2020 by Abhisek Midya ( A18 )

bottom of page