541. Name the function which is used to find the length of string
اس فنکشن کا نام بتائیں جو سٹرنگ کی لمبائی معلوم کرنے کے لیے استعمال ہوتا ہے۔
- A. none
- B. slen
- C. length
- D. strlen()
Check answer and explanation
Answer: 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.