A

Admin • 833K Points
Coach

Q. Which C++ function is used to get the length of a string?

  • (A) length()
  • (B) size()
  • (C) strlen()
  • (D) getLength()
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

In C++, the 'length()' function is used to get the length of a string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.