Computer Science, asked by ankit41947, 11 months ago

which function is used to know the length of a string​

Answers

Answered by saumiinturi
6

To find length of a string, we can use strlen function of "string.h." C program to find length of a string without using strlen function, recursion

mark me as brainliest... plz...

Answered by brokendreams
0

strlen() function is used to know the length of a string.

Definition of streln();

Streln()- helps in calculating the length of a string excluding the null character.

Features of streln();

  • It represented the string variable and the legth to find out.
  • The function determines and identifies the legth as well as return the legth of the string passed.
  • It counts the value of an integer in the given characters but avoid calculating in the null character.
  • As the null character represents the end of the string due to which the streln function stops calculating the string.

Hence, strlen is used for determing andd calculating the string passed in the given character.

Similar questions