Vidyalelo
C++ Programming · Q123

Classes and Objects in C++

Programming · C++ Programming · question 123

Q123

Which function is used to get the length of a string object?

A.
str.length()
B.
str.size()
C.
str.max_size()
D.
both size() and length() function
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board