strlen() function is used to count the length of the string.
Exmaple:
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char str[]="this is string";
clrscr();
printf("length of the string is %d",strlen(str));
getch();
}
Exmaple:
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char str[]="this is string";
clrscr();
printf("length of the string is %d",strlen(str));
getch();
}