Learn C++ Language from the Best Tutors
Search in
We have few options for concatenation
1. Append example
#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main() {
// Write C++ code here
string a("welcome to our");
string b("world");
cout<<a.append(b);
return 0;
}
2. Plus symbol
#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main() {
// Write C++ code here
string a("welcome to our");
string b("world");
cout<<a+b;
return 0;
}
3. Strcat
#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main() {
char a[50] = "welcome to our";
char b[50] = "World";
cout<<strcat(a,b);
return 0;
}
read less
Related Questions
What is the keyword used for a class that cnnot be inherited
Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com
Ask a QuestionRecommended Articles
About C++ Programming Language
Introduction C++ is an excellent programming language and many of the applications are written in C++ language. It has generic, object-oriented & imperative programming features, and also provides facilities for low-level memory manipulation. Successor of C language, it is an OOP (object oriented programming) language...
What is Applications Engineering all about?
Applications engineering is a hot trend in the current IT market. An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...
Learn Microsoft Excel
Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...
8 Hottest IT Careers of 2014!
Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...
Looking for C++ Language Classes?
Learn from the Best Tutors on UrbanPro
Are you a Tutor or Training Institute?
Join UrbanPro Today to find students near youThe best tutors for C++ Language Classes are on UrbanPro
The best Tutors for C++ Language Classes are on UrbanPro