C++ Strings Strings are used for storing text/characters. For example, "Hello World" is a string. A string variable contains a collection of characters surrounded by double quotes (""):
C++ Strings Strings are used for storing text/characters. For example, "Hello World" is a string. A string variable contains a collection of characters surrounded by double quotes (""):