Explain the function Strlen() with example?
Answers
Answered by
1
Answer:
Strlen() is a function used in python to find the length of string or to find no. of characters in a string(including no. of spaces).
Eg.a="Hello"
strlen('a')
output:
5
Answered by
0
Answer: strlen() is the function which returns the length of the string (data type of the returned value is integer).
Explanation:
#include<stdio.h>
void main()
{
char string[100]="hii";
Int length=strlen(string) ;
printf("℅d", length) ;
}
Output:
3
Similar questions