+ 2
For which purpose we use strlen?
2 Answers
+ 7
we use strlen() to get the length of the string ( char[])
example :
// string.h
char name[20];
// take input
int len = strlen(name);
printf("Length of name is %d",len);
+ 1
to find the lenght of a string ... it's in string.h header file