Skip to content
Sign in
Computer PPSC

Name the function that is used to determine the length of a string?

Tap an option to check the answer. You can also press A–D.

Show answer

Correct answer: B) strlen ()

strlen() returns the length of a string in C, counting the characters before the terminating null.
Explanation
strlen() returns the length of a string in C, counting the characters before the terminating null.