The ___________ operation in strings is used to find the length of the string.

  • Size
  • Length
  • Capacity
  • Count
The correct option is "Length." In programming, especially when working with strings, the length operation is used to determine the number of characters or elements in the string. It's a fundamental operation for various string manipulations, such as substring extraction, comparison, and traversal. Understanding string length is essential for writing robust and efficient code when dealing with text data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *