1. size() and length() are equivalent functions that return the current number of characters
of the string.5
The empty() member function is a shortcut for checking whether the number of characters
is zero. Thus, it checks whether the string is empty. Because it might be faster, you should use
empty() instead of length() or size().