What value does strlen(“hello”) return in C?
Correct answer C. 5
Explanation
strlen() counts the characters before the terminating null character. The string "hello" has five characters, so it returns 5; the null terminator is not counted.
Answer checked How we write and check questions
Discussion