Explain the function strlen() with example.
Answers
Answered by
22
Answer:
- strncpy ( )- Copies given number of characters of one string to another
- strlen ( )- Gives the length of str1
- strcmp ( )- Returns 0 if str1 is same as str2. Returns <0 if strl < str2. Returns >0 if str1 > str2
Answered by
44
Answer:
C – strlen() function
strlen( ) function counts the number of characters in a given string and returns the integer value. It stops counting the character when null character is found. Because, null character indicates the end of the string in C.
Explanation:
please thanks for my answer
Similar questions