Strlen in c

strlen() function is used to find the length of a given string .this function terminates when it detects null character because null character defines that it is the end of the string .it does not include the null character into the length of the string. spaces between the words and special characters like @,#,$,% are also considered as the length of the string.


int main( )
int length;
char array[20]="codeskulls" ;
length = strlen(array) ;
printf ( "string length = %d \n" , length ) ;
return 0;