ExamVeda
Login
Home
Classes and Objects in C plus plus
?

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');

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.