?
Which is the correct way of concatenating a character at the end of a string object?
Which is the correct way of concatenating a character at the end of a string object?
way 1:
string s;
s = s + 'a';
way 2:
string s;
s.push_back('a');
way 1:
string s;
s = s + 'a';
way 2:
string s;
s.push_back('a');
Join the Discussion
Login to post a comment or share your explanation.
Login