C++ Access Strings

C++ Access Strings


Define :

You will find the characters in a string with the help of its index number inside square brackets [].

Example1: (This example prints first character in string)

Output : J

Example2 :( This example prints the third character in String)

Output : h