♦ C++ Strings
♣ About C++ Strings
The String is the composition of character array.Many operations can be performed on/among a String such as concatenation, capitalizing, etc.
Also, many in-built methods exist in C++ for String, for instance, the string length can be found.
In this example, Basic string is initialized and printed to screen.
Example
Input:
Output:
♣ Example1: C++ String Concatenation
In this example, Two strings are concatenated. Example
Input:
Output:
♣ Example2: C++ String Append
In this example, One string is appended to another. Example
Input:
Output:
♣ Example3: C++ String Length
In this example, String Length is illustrated. Example
Input:
Output:
♣ Example4: C++ String Accessing
In this example, String accesing is displayed. Example
Input:
Output: