Q
Name the function which is used to find the length of string?
-
A
A. Slen
-
B
B. Length
-
C
C. Strlen()
-
D
D. None
Correct Answer:
C. C. Strlen()
Explanation:
The strlen() function in C is used to calculate the length of a string.
Note: strlen() calculates the length of a string up to, but not including, the terminating null character.
Return Value: The function returns the length of the string passed to it.