Example Of stringlen Function in C


#include
#include
#include
void main()
{
int len;
char name[15]="www.lernc.blogspot.com";
clrscr();
len=strlen(name);
printf("\n the length of name is %d",len);
getch();
}





No comments:

Post a Comment