How to Find the Length of a String in C++

A C++ string variable contains a collection of characters surrounded by double-quotes. There are two types of strings used in C++. C-strings, which are arrays of type char terminated by the null character \0.Strings that are objects of the Standard C++ Library string...