Page 1 of 1

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

Posted: Wed Jul 13, 2022 7:52 pm
by answerhappygod
a) str.length()
b) str.size()
c) str.max_size()
d) both size() and length() function