What is the difference between size() and length()?

Can you please tell me what is the difference between s.size() and s.length() functions?

@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 .