Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to access the element of string in c++

string myString = "Hello";
cout << myString[0];
// Outputs H
 
PREVIOUS NEXT
Tagged: #access #element #string
ADD COMMENT
Topic
Name
6+8 =