1.

What is strlen in ‘C’ language?

Answer»

STRLEN( ): This function calculates the length of a string. It returns the number of characters in a string, not counting the terminating null character. Its syntax is illustrated in the following program:

void main()
{
char N[ ] = “This is a book”;
int len;
len = strlen(N);
printf (“The length of the string is %d”, len);
}



Discussion

No Comment Found