C program to find length of the string using strlen() function

C program to find length of the string using strlen() function Blurnooz.com

strlen() function. C program to find the length of the string using strlen() function with input and output.
simple C program code using strlen() function.

Write a program to find the length of the string using strlen() function.

PROGRAM :-

#include..stdio.h..
#include..conio.h..
#include..string.h..
void main()
{
    char s1[10];
    int l;
    clrscr();
    printf("Enter the string : ");
    gets(s1);
    l=strlen(s1);
    printf("\n Length of string = %d",l);
    getch();
}

OUTPUT :-

C program to find length of the string using strlen() function - Blurnooz.com

Leave a Reply

Please enter your comment!
Please enter your name here

*