Can you please tell me what is the difference between s.size() and s.length() functions?
What is the difference between size() and length()?
@HemantKumar
Hello Hemant,
size() is there to be consistent with other STL containers (like vector, map, etc.) and length() is to be consistent with strings.
as such there is no difference both return size .