Q. Which C++ function is used to get the length of a string?
β
Correct Answer: (A)
length()
Explanation: In C++, the 'length()' function is used to get the length of a string.