mcqs bucket

  • MCQs Bucket | Program C++ Program to Concatenate Two Strings.

    mcqsbucket

      Best guide for exams of all nature, Competitive exams and Interviews

C++ Program to Concatenate Two Strings.

	 
                                 		

#include <iostream>
using namespace std;

int main()
{
string s1, s2, result;

cout << "Enter string s1: ";
getline (cin, s1);

cout << "Enter string s2: ";
getline (cin, s2);

result = s1 + s2;

cout << "Resultant String = "<< result;

return 0;
}