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

  • (A) length()
  • (B) size()
  • (C) strlen()
  • (D) getLength()
πŸ’¬ Discuss
βœ… Correct Answer: (A) length()
Explanation: In C++, the 'length()' function is used to get the length of a string.
Explanation by: Vikash Gupta
In C++, the 'length()' function is used to get the length of a string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
175
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
85%
Success Rate