which function is used to find the number of character in a string
Answers
Answered by
0
Answer:
To find no of character in string
use Strlen function that is string length function
Suppose string is a
char a[30];
gets (a);
cout <<strlen(a);
So, this can print no of character
#answerwithquality #BAL
Answered by
0
Answer:
The length function provides the solution.
Explanation:
- The number of items in an object is returned by the len() method.
- The len() function returns the string's character count when the item is a string.
- In Excel, there is a text function that returns a string's or text's length.
- Excel's LEN function can be used to count the number of characters in a text string and can count all spaces, special characters, non-printable characters, and letter and number characters from a cell.
- To determine the number of characters in any String, Java includes an inbuilt method called length().
- int length(); where length() is a method to determine the number of characters and returns the result as an integer.
- The length function provides the solution.
#SPJ2
Similar questions
Math,
6 months ago
Physics,
6 months ago
Science,
6 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago