C++ Strings

C++ Strings


Define :

C++ Strings

String is a collection of characters. String is denoted by string Keyword. This is not a built-in type, but it behaves like one in its most basic usage. String values must be written in double quotes (“”). For example, the word "moon" and the phrase "Once in blue moon" are both strings. Even "12345" could be considered a string, if specified correctly. 

Example:

Output: