180k views
21 votes
This function returns the length of a string:

A. length
B. len
C. size
D. lengthof

User Leander
by
6.6k points

1 Answer

4 votes

Answer:

The strlen() function calculates the length of a given string.The strlen() function is defined in string.h header file.

Step-by-step explanation:

It doesn’t count null character ‘0’. Syntax: int strlen(const char *str); Parameter: str: It represents the string variable whose length we have to find. Return: This function returns the length of string passed.

User Bhushan Shah
by
7.5k points