0

How to compare characters of a string in c++ ?

String in c++

2nd Jan 2020, 9:21 AM
Sachin Shah
Sachin Shah - avatar
2 Answers
+ 3
Do you mean compare for string equality? std::string or char array?
2nd Jan 2020, 9:28 AM
Ipang
+ 3
String is nothing but a character array so you can access them one by one just like any other array
2nd Jan 2020, 9:55 AM
Arsenic
Arsenic - avatar